# 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.

## 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
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 on other sites
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 on other sites
I have in my linker both dxguid.lib and dinput8.lib

1. 1
Rutin
32
2. 2
3. 3
4. 4
5. 5

• 13
• 9
• 9
• 9
• 14
• ### Forum Statistics

• Total Topics
633317
• Total Posts
3011340
• ### Who's Online (See full list)

There are no registered users currently online

×