   Linker errors in Dev-Cpp
  Hi, I am using Dev-Cpp while compiling a direct x project and get these linker errors:   [Linker error] undefined reference to `Direct3DCreate9@4'  [Linker error] undefined reference to `Direct3DCreate9@4'  [Linker error] undefined reference to `DXGetErrorString9A@4' Anyone have an idea what can be wrong?Best RegardsThomas[Edited by - Run_The_Shadows on May 16, 2006 10:43:26 AM]
  Are you including the proper headers?Edit: check out this post. Google helps.   ;  Did you include the appropriate libs (or .a with DevC) to your project?;  Thanks for answering. Well, the program worked at this point with Visual C++, but had to change due to other complications. Does Dev-Cpp require another way of including libs than VC++?Best RegardsThomas   ;  That linker error is typically generated when you forget to link the proper .lib file. In Dev-C++ that might be a .a file instead as mentioned.If you know you have linked the correct library files to the project it could be that you are using the wrong DirectX SDK file for Dev-C++Im not sure about this, but I believe you need a speciffic SDK for Dev-C++PS. Dont ask me how to install the DevPack's ^^I never did it beforeRef: Dev-C++ resource site;  Have you tried linking the runtime library only?Put the .dll into the directory of your project.Go to Project Options -> Parameters -> Linker -> Add Library or Object -> Select Files of type "*.*" and pick the .dllRemove the references to the other libraries (.lib, .a) files from the code.Still leave the#include <d3d9.h>in your code.The DLL file that I have is: D3DX92ab.dllIt seems to work for me like that.Btw. when problems with libraries occur, always make sure that you don't have several versions of the header files and libraries in different directories.If neccessary uninstall Dev-C++ completely or delete the files manually.From my experience two parallel versions are often the cause for weird problems.   ;  Hey, try this link out.  I got DirectX working just fine using ths way.Clicky!!!Hope that works!  Good luck!Chad.   ;  Nice one, thanks alot for your help. :)Best RegardsThomas   