Advertisement

VC6 Linking problem

Started by March 16, 2000 09:13 AM
0 comments, last by Benjamin 24 years, 9 months ago
I have problem when build my program with Direct Input, the compiler output: general.obj : error LNK2001: unresolved external symbol _GUID_SysMouse dinput.lib(dilib1.obj) : error LNK2001: unresolved external symbol _GUID_ZAxis dinput.lib(dilib1.obj) : error LNK2001: unresolved external symbol _GUID_YAxis dinput.lib(dilib1.obj) : error LNK2001: unresolved external symbol _GUID_XAxis Debug/Game.exe : fatal error LNK1120: 4 unresolved externals however,I have already include the dinput.lib and dinput.h and my DirectDraw code works well. Could anyone tell me what''s wrong?
Ben
I believe you have to add dxguid.lib to your project. Or add #define INITGUID to one of your files. Both these options do the same thing - making several standard GUIDs available to the linker.

This topic is closed to new replies.

Advertisement