phil_har

Very frustrating!!

I am trying to build a simple "Hello DirectX" sample from a tutorial.

Windows XP Home Edition, SP2

Visual Studio 2005 standard edition

DirectX SDK February 2007

1. Created a Win32 project, unchecked the Create directory from solution box.

2. In Application settings i chose Application settings and Windows application and checked the Empty project box.

3. Added Additionnal Depencies: d3d9.lib d3dx9.lib

dxguid.lib DxErr9.lib dinput8.lib

4. Made sure I had the right path in VC++ directories:

C:\DirectX SDK (February 2007)\Include

and

C:\DirectX SDK (February 2007)\Lib\x86

each one at the top of their respective lists.

5. Set the multi-byte character set

6. Added the source code files to the project.

I have done this, erased it, redone it, ..., thinking I mispelled something somwhere. Still the same thing comes up over and over.

<Fatal error cannot open d3d9.lib>

There is a linking problem, I can't find it!!

Help will be greatly appreciated!




Re: Game Technologies: DirectX 101 Fatal error cannot open d3d9.lib

phil_har

No help

This what i have done since the 1st (only post) to this thread.

I uninstalled and reinstalled Visual Studio 2005 and te DirextX SDK.

Rebuilt the Demo project from my tutorial (written for Visual Studio 2005

and DirectX SDK October 2006.

The project compiled!! At last!

But here is the compilelog:

DirectX3D.exe': Loaded 'C:\Documents and Settings\Compaq_Owner\My Documents\Visual Studio 2005\Projects\DirectX3D\Debug\DirectX3D.exe', Symbols loaded.

'DirectX3D.exe': Loaded 'C:\WINDOWS\system32\ntdll.dll', No symbols loaded.

'DirectX3D.exe': Loaded 'C:\WINDOWS\system32\kernel32.dll', No symbols loaded.

'DirectX3D.exe': Loaded 'C:\WINDOWS\system32\d3d9.dll', No symbols loaded.

'DirectX3D.exe': Loaded 'C:\WINDOWS\system32\d3d8thk.dll', No symbols loaded.

'DirectX3D.exe': Loaded 'C:\WINDOWS\system32\gdi32.dll', No symbols loaded.

'DirectX3D.exe': Loaded 'C:\WINDOWS\system32\user32.dll', No symbols loaded.

'DirectX3D.exe': Loaded 'C:\WINDOWS\system32\msvcrt.dll', No symbols loaded.

'DirectX3D.exe': Loaded 'C:\WINDOWS\system32\advapi32.dll', No symbols loaded.

'DirectX3D.exe': Loaded 'C:\WINDOWS\system32\rpcrt4.dll', No symbols loaded.

'DirectX3D.exe': Loaded 'C:\WINDOWS\system32\version.dll', No symbols loaded.

'DirectX3D.exe': Loaded 'C:\WINDOWS\system32\winmm.dll', No symbols loaded.

'DirectX3D.exe': Loaded 'C:\WINDOWS\system32\d3dx9d_31.dll', No symbols loaded.

'DirectX3D.exe': Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft.VC80.DebugCRT_1fc8b3b9a1e18e3b_8.0.50727.42_x-ww_f75eb16c\msvcp80d.dll', Symbols loaded.

'DirectX3D.exe': Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft.VC80.DebugCRT_1fc8b3b9a1e18e3b_8.0.50727.42_x-ww_f75eb16c\msvcr80d.dll', Symbols loaded.

'DirectX3D.exe': Loaded 'C:\WINDOWS\system32\imm32.dll', No symbols loaded.

'DirectX3D.exe': Loaded 'C:\Program Files\Google\Google Desktop Search\GoogleDesktopNetwork3.dll', No symbols loaded.

'DirectX3D.exe': Loaded 'C:\WINDOWS\system32\ws2_32.dll', No symbols loaded.

'DirectX3D.exe': Loaded 'C:\WINDOWS\system32\ws2help.dll', No symbols loaded.

'DirectX3D.exe': Unloaded 'C:\Program Files\Google\Google Desktop Search\GoogleDesktopNetwork3.dll'

'DirectX3D.exe': Unloaded 'C:\WINDOWS\system32\ws2_32.dll'

'DirectX3D.exe': Unloaded 'C:\WINDOWS\system32\ws2help.dll'

'DirectX3D.exe': Loaded 'C:\WINDOWS\system32\uxtheme.dll', No symbols loaded.

'DirectX3D.exe': Loaded 'C:\Program Files\Common Files\Symantec Shared\AntiSpam\asOEHook.dll', No symbols loaded.

'DirectX3D.exe': Loaded 'C:\WINDOWS\system32\msvcr71.dll', No symbols loaded.

'DirectX3D.exe': Loaded 'C:\WINDOWS\system32\MSCTF.dll', No symbols loaded.

'DirectX3D.exe': Loaded 'C:\Program Files\Support.com\bin\sdchook.dll', Binary was not built with debug information.

'DirectX3D.exe': Loaded 'C:\WINDOWS\system32\MSCTFIME.IME', No symbols loaded.

'DirectX3D.exe': Loaded 'C:\WINDOWS\system32\ole32.dll', No symbols loaded.

D3DX: Unicode support: 1

'DirectX3D.exe': Loaded 'C:\WINDOWS\system32\usp10.dll', No symbols loaded.

'DirectX3D.exe': Loaded 'C:\WINDOWS\system32\mslbui.dll', No symbols loaded.

'DirectX3D.exe': Loaded 'C:\WINDOWS\system32\oleaut32.dll', No symbols loaded.

The program '[2496] DirectX3D.exe: Native' has exited with code 0 (0x0).

Note: the multy-byte chacter is set!

Any wisdom out there I assure it will not fall on deaf ears!






Re: Game Technologies: DirectX 101 Fatal error cannot open d3d9.lib

phil_har

I am answering to myself!!!

For those who have been viewing this thread let me tell you where I am.

Like I said after reinstalling Visual Studio 2005 standard edition and the

October 2006 DirectX SDK my program finally compiled.

1. The compile log refers to a certain number of symbols not loaded. I compiled

the program using the debugger. Well the same messages appear in the compile

log, when I compile with the debugger, samples in the DirectX SDK.

There is a solution to this (explained in the DirectX documentation

"Frequently asked questions") , BUT in the meanwhile it does NOT

affect the program's execution.

2. The window generated by my code is displayed off-center.

I changed the screen resolution to the one my tutorial is written for.

This did not solve the issue so I went to the code and modified it. Now all is well