Sign in to follow this  

error LNK2019

This topic is 4413 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I finished installing direct x and opened a sample BasicHLSL and got 116 errors when I clicked "build". All error LNK2019. Most messages resembled eachother, But here are some of the errors:
Quote:
1>dxutmisc.obj : error LNK2019: unresolved external symbol __imp__SetCursorPos@8 referenced in function "protected: void __thiscall CBaseCamera::GetInput(bool,bool,bool,bool)" (?GetInput@CBaseCamera@@IAEX_N000@Z)
Quote:
1>dxut.obj : error LNK2019: unresolved external symbol __imp__SystemParametersInfoW@16 referenced in function "long __cdecl DXUTInit(bool,bool,bool,bool)" (?DXUTInit@@YAJ_N000@Z)
Most of them were the exact same but different symbols etc. Does anyone know what the problem is> EDIT: The project has a debug folder with all the un-resolved external objects, I think the problem is I need to link these into the program but how does one link directx symbols into the files?

Share this post


Link to post
Share on other sites
I set up the platform SDK and in the Tools - options I went to Directories and under include I added the platform sdk include, Under libraries I added the libs folder and under Executables I added bin's. That's all the setup I did. I also was told to edit and add some stuff into a .vsprops file but when I checked it they were already there. Any ideas? Mabey more stuff to install?

Share this post


Link to post
Share on other sites
Yup. Platform SDK is installed AND working, Tested it and all. Heres the project Hierarchy

BasicHLSL (Main Folder)
|=========|============|
Common===Debug=======Media
In the debug folder contains BasicHLSL.obj, BasicHLSL.pch, BasicHLSL.pdb etc all which were appearing ass errors when I tried to build it. any ideas?

EDIT: I tried a few other examples, All of them are getting symbol errors :S, Same error all "Unresolved external symbols"

Share this post


Link to post
Share on other sites
excuse the incompetance, But im not 100% sure what that means :(. I know I set my platform sdk libs (C:\program files\Microsoft Platform SDK) to link and the direct X installer set up the direct X path. As for user32.dll (and several others), the video I watched said to add it to WinCore.vsprops. I also did what they said to makesure the platform sdk was installed right, and no errors. So I guess scratch that, And with my searching on the web it says most unresolved errors come from a file not properly included or linked in the project. If not, Does anyone know where I can find/can write a step by step guide from installing VCExpress to Compiling the first directX file? Also not in my wincore.vsprops after setting up the PSDK they said to add several things to wincore.vsprops but when I popped it open the stuff was already there +2 more DLL's called odbc32.lib and odbccp32.lib. I was guessing these might be linked to directX? A step by step guide would be great though I could just uninstall VCExpress and startover on the right track

Share this post


Link to post
Share on other sites

This topic is 4413 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this