|
From: Luke D. <cod...@ho...> - 2003-06-23 01:54:49
|
Searching Google for '"directx 9" mingw' gives this link to an import library that you can probably try instead of d3d9.lib: http://www.gametutorials.com/forum/topic.asp?TOPIC_ID=4402&whichpage=2 Luke ----- Original Message ----- From: "Brenden T." <br...@rc...> To: <Min...@li...> Sent: Monday, June 23, 2003 8:27 AM Subject: [Mingw-users] Linking w/ DirectX SDK? > Hi all, I have hopefully a small problem getting a test file to link. > The file is D3DIntro.cpp and I use this makefile: > > D3DIntro.exe: D3DIntro.cpp > g++ -mwindows -o D3DIntro -I/D/DXSDK/Include -L/D/DXSDK/Lib > D3DIntro.cpp -ld3d9 > > > Linking gives me a "symbol not found error": > D3DIntro.cpp: undefined reference to 'Direct3DCreate9@4' > > The d3d9.lib file has Direct3DCreate9 defined (according to nm) but not > @4 appended to it. And it has an underscore prepended. > > $ nm -A d3d9.lib | grep Direct3DCreate > d3d9.lib:d3d9.dll:00000000 T _Direct3DCreate9 > > I'm not sure if it's the underscore or the @4 messing me up, but I can't > find any options to change it (the gcc manual lists a LOT of options > though so I could just be missing it). > > Anyone have ideas how to get this beast to link? > > Thanks! |