|
From: Brenden T. <br...@rc...> - 2003-06-23 00:17:56
|
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! |