Board index » cppbuilder » BCB4 and DirectX 7 SDK - the same problem

BCB4 and DirectX 7 SDK - the same problem

Hi;

I'm also having difficulty in compiling DirectX files. I have done the
following:

- Added the (...)\lib directory to the library paths list
- Added the (...)\include directory to include paths list
- Added the (...)\samples\Multimedia\D3DIM\lib directory to the library
paths list
- Added the (...)\samples\Multimedia\D3DIM\include directory to the include
paths list
- Added resource script file to the Project
- All this is done in a Console/GUI application, and included the condefs.h
file.

After compilation, I'm still receiving error messages, which are listed
below. Could someone direct me to the solution?

Thanks in advance.

--------------------------------Error
Messages-----------------------------------

[C++ Warning] Project2.cpp(914): W8080 'g_2_PI' is declared but never used.
[C++ Warning] Project2.cpp(914): W8080 'g_PI_DIV_2' is declared but never
used.
[C++ Warning] Project2.cpp(914): W8080 'g_PI_DIV_4' is declared but never
used.
[C++ Warning] Project2.cpp(914): W8080 'g_INV_PI' is declared but never
used.
[C++ Warning] Project2.cpp(914): W8080 'g_DEGTORAD' is declared but never
used.
[C++ Warning] Project2.cpp(914): W8080 'g_RADTODEG' is declared but never
used.
[C++ Warning] Project2.cpp(914): W8080 'g_HUGE' is declared but never used.
[C++ Warning] Project2.cpp(914): W8080 'g_EPSILON' is declared but never
used.
[Linker Error] Unresolved external 'CD3DApplication::CD3DApplication()'
referenced from C:\MY DOCUMENTS\DIRECTX7\COMPRESS2\PROJECT2.OBJ.
[Linker Error] Unresolved external
'CD3DApplication::SetViewParams(_D3DVECTOR *, _D3DVECTOR *, _D3DVECTOR *,
float)' referenced from C:\MY DOCUMENTS\DIRECTX7\COMPRESS2\PROJECT2.OBJ.
[Linker Error] Unresolved external 'D3DUtil_InitMaterial(_D3DMATERIAL7&,
float, float, float, float)' referenced from C:\MY
DOCUMENTS\DIRECTX7\COMPRESS2\PROJECT2.OBJ.
[Linker Error] Unresolved external 'D3DUtil_InitLight(_D3DLIGHT7&,
_D3DLIGHTTYPE, float, float, float)' referenced from C:\MY
DOCUMENTS\DIRECTX7\COMPRESS2\PROJECT2.OBJ.
[Linker Error] Unresolved external 'D3DUtil_GetDXSDKMediaPath()' referenced
from C:\MY DOCUMENTS\DIRECTX7\COMPRESS2\PROJECT2.OBJ.
[Linker Error] Unresolved external 'CD3DApplication::OutputText(unsigned
long, unsigned long, char *)' referenced from C:\MY
DOCUMENTS\DIRECTX7\COMPRESS2\PROJECT2.OBJ.
[Linker Error] Unresolved external 'CD3DApplication::OnQuerySuspend(unsigned
long)' referenced from C:\MY DOCUMENTS\DIRECTX7\COMPRESS2\PROJECT2.OBJ.
[Linker Error] Unresolved external
'CD3DApplication::OnResumeSuspend(unsigned long)' referenced from C:\MY
DOCUMENTS\DIRECTX7\COMPRESS2\PROJECT2.OBJ.
[Linker Error] Unresolved external 'CD3DApplication::Create(HINSTANCE__ *,
char *)' referenced from C:\MY DOCUMENTS\DIRECTX7\COMPRESS2\PROJECT2.OBJ.
[Linker Error] Unresolved external 'CD3DApplication::Run()' referenced from
C:\MY DOCUMENTS\DIRECTX7\COMPRESS2\PROJECT2.OBJ.
[Linker Error] Unresolved external 'CD3DApplication::MsgProc(HWND__ *,
unsigned int, unsigned int, long)' referenced from C:\MY
DOCUMENTS\DIRECTX7\COMPRESS2\PROJECT2.OBJ.
[Linker Error] Unresolved external 'CD3DApplication::Pause(int)' referenced
from C:\MY DOCUMENTS\DIRECTX7\COMPRESS2\PROJECT2.OBJ.

 

Re:BCB4 and DirectX 7 SDK - the same problem


: "Metin Ozmener" <jk...@altavista.net> wrote:

Quote
>I'm still receiving error messages,
>[C++ Warning] Project2.cpp(914): W8080 'g_2_PI' is declared but never used.

These are warnings.

Quote
>[Linker Error] Unresolved external 'CD3DApplication::CD3DApplication()'
>referenced from C:\MY DOCUMENTS\DIRECTX7\COMPRESS2\PROJECT2.OBJ.

Here you need to add to the DirectX libraries (!) themselves to the
project; adding the path itself is not sufficient.

--
General information:
  * Post to the right group - http://www.borland.com/newsgroups/
    * Do not cross- or multipost
      * Research at http://www.mers.com/searchsite.html

Stefan Hoffmeister - http://www.econos.de/
TeamB - http://www.teamb.com/

Re:BCB4 and DirectX 7 SDK - the same problem


First of all, thank you for your help.

Quote
> Here you need to add to the DirectX libraries (!) themselves to the
> project; adding the path itself is not sufficient.

Now I added all the libraries (under the Borland directory) to the Project.
But there are still errors saying:

[Linker Error] Error processing module .

Any suggestions?

Re:BCB4 and DirectX 7 SDK - the same problem


: "Metin Ozmener" <jk...@altavista.net> wrote:

Quote
>[Linker Error] Error processing module .

You have some weird character in the path to these modules; probably a
space, a "+" or a "-". Don't.

--
General information:
  * Post to the right group - http://www.borland.com/newsgroups/
    * Do not cross- or multipost
      * Research at http://www.mers.com/searchsite.html

Stefan Hoffmeister - http://www.econos.de/
TeamB - http://www.teamb.com/

Other Threads