Advertisement

VC link error

Started by February 05, 2002 12:59 PM
2 comments, last by Yang 22 years, 10 months ago
When I do this: DirectInput8Create(GetModuleHandle(NULL), DIRECTINPUT_VERSION, IID_IDirectInput8A , (void**)&g_lpDI, NULL); it gives me the following error message: error LNK2001: unresolved external symbol _IID_IDirectInput8A fatal error LNK1120: 1 unresolved externals Why?? I am new to VC++ 6.0, thanks.
I think you have to add the DX8 *.lib-files to your project settings. When I remember it correctly it is Project/Setting... and than choose the "Linker" card. There you have to add the *.lib files.



The Wild Wild West - Desperado!
The Wild Wild West - Desperado!
Advertisement
Two options:
  1. At the top of your file, before you include any DirectX headers, #define INITGUID


  2. Add dxguid.lib to your project.


[ GDNet Start Here | GDNet Search Tool | GDNet FAQ | MS RTFM [MSDN] | SGI STL Docs | Google! ]
Thanks to Kylotan for the idea!
hi, i have finished coding my first DirectX program, and there were alot of errors, i fixed most of them but i am stumped on the last one, if anyone can help it would be appreciated

LIBCD.lib(wincrt0.obj) : error LNK2001: unresolved external symbol _WinMain@16



,Matt

-= kill one your a murderer, kill thousands your a conquerer =-
-= kill one you're a murderer, kill thousands you're a conquerer =-

This topic is closed to new replies.

Advertisement