Archived

This topic is now archived and is closed to further replies.

xode

N-e-r-v-o-u-s b-r-e-a-k-d-o-w-n!

Recommended Posts

Meshes.obj : error LNK2001: unresolved external symbol _IID_IDirectInput8A For God''s sake, what does this mean!?!?! I suspect that I don''t link the libs right, how do I do this in MSVC? And one other thing, how do I find out which lib(or whatever file it is) to add?? Please answer!

Share this post


Link to post
Share on other sites
It means that the symbol _IID_IDirectInput8A is unresolved, surprisingly.

You probably need to link it with dinput.lib, or something with a similar name. I don''t have my /lib directory with me right now, so I can''t be sure. You change the linking options in the Linking tab of the Setup dialog for your project.

In the future, you might want to adopt a slightly more relaxed attitude: stress is a contributing factor in heart-disease, cancer, and many other illnesses.

Signatures? We don''t need no steenking signatures!

Share this post


Link to post
Share on other sites
Hi,

well it seems that you do not link to the dinput8.lib file correctly... just add the path of the .lib files of DirectX to your directory search path for librarie files... then do project->settings and add the dinput8.lib file (and maybe even the dxguid.lib file) there

That is all

ICQ: 130925152
Email: e.j.folkertsma@student.utwente.nl

Share this post


Link to post
Share on other sites
You need to include "dinput.lib" I believe.

To do this, first go to the "Project" drop-down menu and click on "Settings". Find the "Link" tab and click that. Then find the input box that is titled: "Object/library modules:" Add "dinput.lib" to the list of libraries and click OK.

Also make sure you have told msvc the location of your library by going to the tool menu and clicking options. Then find the directory tab and add a search directory where your library exists.

In the case of directx, the help files usually clue you in as to what libraries need to be linked in, but sometimes you have to look around.

Share this post


Link to post
Share on other sites
OH MY GOD!!!!!!!!!

It worked! I would like to thank all of you for helping me out so fast!

Now I can finally start rewriting my game in DX! Wohoo!

So the little programmer avoided the nervous breakdown, and went off to rewrite his old car game in DX, and lived happily ever after

Share this post


Link to post
Share on other sites