PDA

View Full Version : LNK1104: cannot open file 'clanCore-static-mt.lib'



blue_thunder
09-03-2013, 09:25 PM
I've spent much of the day trying to get ClanLib to work, but I cannot get past this damn LNK1104 error.
12912

I'm using Visual Studio 2010 in Windows XP. I've downloaded the "ClanLib 2.3.7 for Visual Studio 2010 SP1 (32 bit)" & "Dependency Libraries for Visual Studio 2010 SP1 (32 bit)" libraries and extracted them to "C:\CApps\ClanLibPre\include" & "C:\CApps\ClanLibPre\lib" folders.
12917

I also downloaded the "ClanLib-2.3.7.zip (Windows)" source package and extracted it to a different folder "C:\CApps\ClanLibSource". I openned up the "Basic2D-vc2010.sln" file in VS2010 and set up the global includes.
12923

I even made sure my Runtime Libraries were set to "Multi-threaded Debug (/MTd)" & "Multi-threaded (/MT)"
12924
12925

Can someone please help me get past this error?

sphair
09-04-2013, 06:40 AM
Maybe you set up the include paths, but forgot to set up the lib paths? Check out the last screenshot on this page:

http://clanlib.org/global-includes-vs2010.html

Your lib path should then be c:\capps\clanlibpre\lib\win32

Make sure the clanCore-static-mt.lib is in your folder c:\capps\clanlibpre\lib\win32 folder as well. If not, add the path to the global lib path to where it is.

blue_thunder
09-04-2013, 03:14 PM
Ok, I'm an idiot. I was putting the Lib files in the Include Directories. Didn't realize there was a separate place for the Library Directories. Thanks for your help.