Jump to content
  • Advertisement
Sign in to follow this  
soldier_

Compiler problem

This topic is 4835 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I am having a problem when I try to compile my DX engine with Visual Studio 2005 Express Beta 2. Actually I have two problems but I think they are related to each other. 1. When I try to launch the game straight from Windows it would not start. When I run it from Visual Studio it runs with no problem. 2. I thought the problem above is due to running the game in debug version so I decided to compile in release mode. When I tryed to do that I recived this errors:
Compiling...
D3DFuncs.cpp
Linking...
DIMouse.obj : error LNK2019: unresolved external symbol _c_dfDIMouse referenced in function "public: long __thiscall CDIMouse::Initialise(struct HWND__ *,int,int)" (?Initialise@CDIMouse@@QAEJPAUHWND__@@HH@Z)
DIMouse.obj : error LNK2019: unresolved external symbol _GUID_SysMouse referenced in function "public: long __thiscall CDIMouse::Initialise(struct HWND__ *,int,int)" (?Initialise@CDIMouse@@QAEJPAUHWND__@@HH@Z)
DIMouse.obj : error LNK2019: unresolved external symbol _DirectInput8Create@20 referenced in function "public: long __thiscall CDIMouse::Initialise(struct HWND__ *,int,int)" (?Initialise@CDIMouse@@QAEJPAUHWND__@@HH@Z)
DIMouse.obj : error LNK2019: unresolved external symbol _IID_IDirectInput8A referenced in function "public: long __thiscall CDIMouse::Initialise(struct HWND__ *,int,int)" (?Initialise@CDIMouse@@QAEJPAUHWND__@@HH@Z)
.\Release/Primitives.exe : fatal error LNK1120: 4 unresolved externals

Can anyone help me solve this problem?

Share this post


Link to post
Share on other sites
Advertisement
Try linking to dxguid.lib. That could be the problem. If not, make sure that your Release configuration is set up right. I usually forget to set a couple things. Then again, I've never used the 2005 compiler, so it could be a problem with that, but I doubt it.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!