SFML community forums

Help => General => Topic started by: julescoder on April 25, 2010, 06:15:44 pm

Title: No lib files outputed from visual studio Exp 2010
Post by: julescoder on April 25, 2010, 06:15:44 pm
I built the sfml 1.5 project in vs ee 2010.
 The appropriate dlls were created, but the linkable .lib files were not created  except for the "sfml-main-d.lib" file.
The build was for the 'debug dll' profile.

Is there a setting i am missing, or is this a prob with vs 2010 ?
Title: No lib files outputed from visual studio Exp 2010
Post by: Aval on April 25, 2010, 06:54:37 pm
I also have this problem. I think the reason sfml-main has a .lib is because in the solution properties, it's set to be built as a static library.

I have no idea how to get the linker files, though.
Title: No lib files outputed from visual studio Exp 2010
Post by: Laurent on April 25, 2010, 07:07:31 pm
Maybe the automatic conversion didn't succeed 100%, you should check the projects properties such as Output directory, Import library, etc.
Title: No lib files outputed from visual studio Exp 2010
Post by: Aval on April 25, 2010, 07:08:41 pm
Aha! I think I've got it.

Visual C++ Express 2010 doesn't build an import library. When building SFML2, go into the project properties of one of the projects, let's say sfml-graphics.

Properties->Configuration Properties->Linker->Advanced

Where it says "Import Library", put "sfml-graphics-d.lib" if you're building the debug dll, or "sfml-graphics.lib" for the release dll.

Build sfml-graphics, and you'll get a "sfml-graphics-d.lib" in the sfml2\build\vc2008 directory. Copy that into the lib directory, and it'll be accessible like in vc2008.

EDIT: Laurent beat me to the solution! He's right, the imports weren't added.