Undefined Reference Linker Error
When I try to compile a DirectX project, I get this error:
c:\dev-c++\my files\demo6_3.o(.text+0x234):demo6_3.cpp: undefined reference to `DirectDrawCreateEx@16''
Can anyone identify the problem?
Leej Hawj
March 13, 2003 11:18 AM
make sure your application is a console application, then make sure you that your links have ddraw.lib, dxguid.lib, and winmm.lib in the project settings. hope this helps.
quote: Original post by Anonymous Poster
make sure your application is a console application, then make sure you that your links have ddraw.lib, dxguid.lib, and winmm.lib in the project settings. hope this helps.
Dev-C++ doesn''t use lib files - at least not the .lib extension. eg
libddraw.a
Looking at libddraw.a with a hex editor, I can find DirectDrawCreate@12 - but not DirectDrawCreateEx@16 - infact, I''m not able to find DirectDrawCreateEx in any of the lib files or header files. Admittedly, my installation of DevC++ is old - Sept 2000 build. Perhaps your situation is similar. Perhaps I need to update my copy...
"I thought what I'd do was, I'd pretend I was one of those deaf-mutes." - the Laughing Man
WHat is a hex editor? Will it help me find AlphaBlend@44? I''m currently using Dev-C++ as well.
---signature---" Actually, at the time, I didn't give a damn about the FoxNews issue... just that you would come swooping in with your Super Mith cape flapping behind you and debunk it just because it didn't happen in your living room." - InnocuousFox
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement