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

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.

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.

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.

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

Can someone please help me get past this error?

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:


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.

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.