| | |
Where to put d3dx9.h?
Please support our C++ advertiser: Intel Parallel Studio Home
Thread Solved |
Hey,
I download DarkGDK for Visual C++ 2008 Express (also downloading the correct version of the Direct X SDK). I just saved the SDK in some random directory, so when I try to execute the test code, i get an error telling me d3dx9.h can't be found. So, where do I put the SDK files so that Visual C++ can use them as include files?
I download DarkGDK for Visual C++ 2008 Express (also downloading the correct version of the Direct X SDK). I just saved the SDK in some random directory, so when I try to execute the test code, i get an error telling me d3dx9.h can't be found. So, where do I put the SDK files so that Visual C++ can use them as include files?
you will probably have to tell the compiler where you put all those files. Fire up the compiler, then select menu item Tools --> Options. Exand the Project and Solutions tab, then select VC++ Directories Change the list box Show Directories For in the right dialog box and add the paths in appropriate places.
I just finished installing Dark GDK, and the installation program added the paths in appropriate places as I described above. If yours didn't, then you did not install Dark GDK correctly.
I just finished installing Dark GDK, and the installation program added the paths in appropriate places as I described above. If yours didn't, then you did not install Dark GDK correctly.
Last edited by Ancient Dragon; Jan 20th, 2008 at 3:51 pm.
Don't PM me with questions -- you might get a nasty PM in response. If you have a question then post it in one of the forums.
You probably need to follow the steps in these instructions for setting up the Windows SDK in VC++Epress 2005 - telling VC where to find the includes and libs and executables.
"We Americans got so tired of being thought of as dumb by the rest of the world that we went to the polls last November and removed all doubt."
~~~~~~~~~~~~~~~~~~
Looking for an exciting graduate degree? Robotics and Intelligent Autonomous Systems (RIAS) at SDSM&T See the program brochure here.
~~~~~~~~~~~~~~~~~~
Looking for an exciting graduate degree? Robotics and Intelligent Autonomous Systems (RIAS) at SDSM&T See the program brochure here.
•
•
•
•
You probably need to follow the steps in these instructions for setting up the Windows SDK in VC++Epress 2005 - telling VC where to find the includes and libs and executables.
Don't PM me with questions -- you might get a nasty PM in response. If you have a question then post it in one of the forums.
I included the directory, but now it says that d3dx9.lib can't be opened, so I think I'm just going to try reinstalling - since something might have gone wrong anyway.
EDIT: If I do need to reinstall, how should I go about it? Would simply running the install file again work, or should I remove the DarkGDK folder and then reinstall (would doing that screw up any settings)?
Also, where did you save the DirectX SDK files when you installed them?
EDIT: If I do need to reinstall, how should I go about it? Would simply running the install file again work, or should I remove the DarkGDK folder and then reinstall (would doing that screw up any settings)?
Also, where did you save the DirectX SDK files when you installed them?
Last edited by CoolGamer48; Jan 20th, 2008 at 4:13 pm.
I'm a student. If my statements seem too absolute, feel free to coat them with "In my opinion..." or "I believe...".
It doesn't matter where you save the downloaded file from the Dark GDK download link -- you don't even have to save it but just run it when prompted to run or save.
That will save a file names "Dark GDK - 161107.exe". You have to execute that program, which will decompress all the files and install them in "\Program Files\The Game Creators\Dark GDK". My guess is that you did not run that program. After that is done your compiler should be set up to go. Just open the example program located at "\Program Files\The Game Creators\Dark GDK\Samples\Visual Studio 9" and see if you can compile one of them ok.
That will save a file names "Dark GDK - 161107.exe". You have to execute that program, which will decompress all the files and install them in "\Program Files\The Game Creators\Dark GDK". My guess is that you did not run that program. After that is done your compiler should be set up to go. Just open the example program located at "\Program Files\The Game Creators\Dark GDK\Samples\Visual Studio 9" and see if you can compile one of them ok.
Don't PM me with questions -- you might get a nasty PM in response. If you have a question then post it in one of the forums.
•
•
•
•
It doesn't matter where you save the downloaded file from the Dark GDK download link -- you don't even have to save it but just run it when prompted to run or save.
•
•
•
•
That will save a file names "Dark GDK - 161107.exe". You have to execute that program, which will decompress all the files and install them in "\Program Files\The Game Creators\Dark GDK". My guess is that you did not run that program. After that is done your compiler should be set up to go. Just open the example program located at "\Program Files\The Game Creators\Dark GDK\Samples\Visual Studio 9" and see if you can compile one of them ok.
Now - wouldn't whatever compiler I'm using need to know where the DirectX SDK August 2007 files are for them to be any use? So either the DarkGDK installer would set that up ( and I don't know how it would do that since it doesn't know where you saved the DirectX SDK files), or the DirectX SDK installer would set that up, or you would have to do it manually, right?
I'm a student. If my statements seem too absolute, feel free to coat them with "In my opinion..." or "I believe...".
>>When you install the August 2007 DirectX SDK, doesn't it make you put the files somewhere?
Only if you select "Save" from the download link., If you do then it doesn't matter where you save it.
If you look in the compiler's Options you should see this in the Include directory (see Post #2 above)
D:\Program Files\Microsoft DirectX SDK (August 2007)\Include
I installed the DirectX SDK some time ago and don't recall if the installed added that line to the compiler or if I added it manually. In any event check your compiler and add the location where you installed the DirectX SDK.
Only if you select "Save" from the download link., If you do then it doesn't matter where you save it.
If you look in the compiler's Options you should see this in the Include directory (see Post #2 above)
D:\Program Files\Microsoft DirectX SDK (August 2007)\Include
I installed the DirectX SDK some time ago and don't recall if the installed added that line to the compiler or if I added it manually. In any event check your compiler and add the location where you installed the DirectX SDK.
Last edited by Ancient Dragon; Jan 20th, 2008 at 4:45 pm.
Don't PM me with questions -- you might get a nasty PM in response. If you have a question then post it in one of the forums.
•
•
•
•
>>When you install the August 2007 DirectX SDK, doesn't it make you put the files somewhere?
Only if you select "Save" from the download link., If you do then it doesn't matter where you save it.
Now, the problem isn't that the compiler can't find a file - it can't open d3dx9.lib. This is exactly what the compiler says:
------ Rebuild All started: Project: GameTest1, Configuration: Debug Win32 ------
Deleting intermediate and output files for project 'GameTest1', configuration 'Debug|Win32'
Compiling...
Main.cpp
Linking...
LINK : fatal error LNK1104: cannot open file 'd3dx9.lib'
Build log was saved at "file://c:\Documents and Settings\******\My Documents\Visual Studio 2008\Projects\GameTest1\GameTest1\Debug\BuildLog.htm"
GameTest1 - 1 error(s), 0 warning(s)
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========
Now - I have no idea why this error comes up. Apparently the include was automatically setup for you, but not for me, and I don't know why since we ran the same files. Does anyone have any idea why that might be happening?
EDIT: I also tried including the C:\Program Files\Microsoft DirectX SDK (August 2007)\Lib\x64 and x86 directories (where d3dx9.lib is located), but neither of them changed anything (I tried adding them both individually and having them both added at the same time).
Last edited by CoolGamer48; Jan 20th, 2008 at 5:10 pm.
I'm a student. If my statements seem too absolute, feel free to coat them with "In my opinion..." or "I believe...".
![]() |
Similar Threads
Other Threads in the C++ Forum
- Previous Thread: How to detect effeciently file encoding of a text file at runtime?
- Next Thread: compiling different parts of a calendar
| Thread Tools | Search this Thread |
api array based beginner binary c++ c/c++ calculator char char* class classes code compile compiler console conversion count delete deploy desktop directshow dll download dynamic dynamiccharacterarray email encryption error file forms fstream function functions game givemetehcodez google graph gui homeworkhelp homeworkhelper iamthwee ifstream input int integer java lib linkedlist linker linux list loop looping loops map math matrix memory news node numbertoword output parameter pointer problem program programming project python random read recursion recursive reference return rpg sorting string strings struct temperature template templates test text text-file tree unix url variable vector video visualstudio win32 windows winsock word wordfrequency wxwidgets






