April 15th, 2003, 03:28 PM
Dev-C++ / DirectX 8.1
I tried to compile a small DirectX program.
It only uses DDraw.
But I get this message:
[Linker error] undefined reference to `DirectDrawCreateEx@16'
I set all DX SDK pathes correctly (or at least the same way than VC++) and I included dxguid.lib and ddraw.lib (project options-parameters-libraries). I also tried the other libraries, but without success (when I add to much, it won't link but give me a message, everything's okay - but no .exe!).
What can I do?
April 15th, 2003, 03:45 PM
DirectDrawCreateEx is part of the IDirectDrawFactory interface, no? If I understood the docs correctly, this is deprecated today in favor of the IDirectDraw interface.
You need to get DirectX7 headers to compile this program then.
(not 100% sure on that)
April 15th, 2003, 04:20 PM
It is DX 7, but with Visual C++ and DirectX 8.1 SDK it worked without any problems.
Does anyone know how to configure Dev-C++ correctly for DirectX?
August 27th, 2003, 11:32 AM
I'm experencing the same Problem. And I know where it comes from. The Library has a symbol DirectDrawCreateEx but your code is compiled with the symbol name DirectDrawCreateEx@16. What does that @16 mean? Does anybody know? Maybe thats the solution!!
August 27th, 2003, 01:09 PM
You should use the DevPAK for DevC++ instead of the microsoft SDK. Start the vUpdate program to download it.
August 27th, 2003, 01:35 PM
Sorry! I'm using mingw32 and the GNU C Compiler. Following did the trick though