Skip to main content
gamedev.net
🔒 Locked

problem with directx

Started by zacharya Nov 24, 2003 at 2:31 AM 5 replies 6.7k views
Original Post
zacharya
zacharya
I have a problem with directx especially directinput these are the errors irectInput.obj : error LNK2001: unresolved external symbol _DirectInput8Create@20 DirectInput.obj : error LNK2001: unresolved external symbol _IID_IDirectInput8A DirectInput.obj : error LNK2001: unresolved external symbol _c_dfDIKeyboard DirectInput.obj : error LNK2001: unresolved external symbol _GUID_SysKeyboard DirectInput.obj : error LNK2001: unresolved external symbol _c_dfDIMouse DirectInput.obj : error LNK2001: unresolved external symbol _GUID_SysMouse Debug/tes.exe : fatal error LNK1120: 6 unresolved externals Error executing link.exe. I don''t know what''s the problem....
being young is a treasure that can''t be valued
S1CA
S1CA
Link with dxguid.lib as well.

--
Simon O''Connor
3D Game Programmer &
Microsoft DirectX MVP
Simon O'Connor | Technical Director (Newcastle) Lockwood Publishing | LinkedIn | Personal site
zacharya
zacharya
thanks but I still have these errors

DirectInput.obj : error LNK2001: unresolved external symbol _DirectInput8Create@20
DirectInput.obj : error LNK2001: unresolved external symbol _c_dfDIKeyboard
DirectInput.obj : error LNK2001: unresolved external symbol _c_dfDIMouse
Debug/tes.exe : fatal error LNK1120: 3 unresolved externals

I have no reference which library should I link....
being young is a treasure that can''t be valued
Endurion
Endurion
And dinput8.lib
Fruny: Ftagn! Ia! Ia! std::time_put_byname! Mglui naflftagn std::codecvt eY'ha-nthlei!,char,mbstate_t>
zacharya
zacharya
thanks for your help

but is there any reference which library should I add in my project if I use some feature from DirectX?

thanks again
being young is a treasure that can''t be valued
tok_junior
tok_junior
Yes. The SDK-Docs. At the end of each page describing a function there says what header and lib to use.
zacharya
zacharya
thanks man!
being young is a treasure that can''t be valued

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.