PDA

View Full Version : Can't open clanCore-static-mt-debug.lib



Bobbias
02-18-2013, 08:51 PM
Here's the catch:
I set the project settings to Multi-Threaded Debug, and it's still happening...

What else could be causing this to happen?

EDIT: Guess it might be a good idea to point out I'm using VS 2012 and I've built from source.

Judas
02-19-2013, 01:46 AM
It means the linker cannot find the .lib file you built. You probably need to add the folder where the lib file is to your library search path in Visual Studio.

Bobbias
02-19-2013, 02:09 AM
Well, looks like I just forgot the \x64 folder :/

Now I'm getting "LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup"

Judas
02-19-2013, 06:04 AM
This time the linker cannot find the main() function for the application.

Console projects need a main() function in Windows, while normal applications need a WinMain() function instead. If you are trying to compile a normal application, then the subsystem setting for the linker is set to the wrong value. Note that the clanApplication library only works for WinMain applications.

Bobbias
02-19-2013, 10:47 AM
Ahh, ok, changed from a console application to windows and it works fine. I guess I missed something pointing that out. The program compiles fine now. Thanks for the help, I'm much more used to C#, Java and Python than C++.

I was trying to compile the Console Hello World sample, so I had made a console app when I created my project.