Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: No lib files outputed from visual studio Exp 2010  (Read 4967 times)

0 Members and 1 Guest are viewing this topic.

julescoder

  • Newbie
  • *
  • Posts: 7
    • View Profile
No lib files outputed from visual studio Exp 2010
« 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 ?

Aval

  • Newbie
  • *
  • Posts: 34
    • View Profile
    • Email
No lib files outputed from visual studio Exp 2010
« Reply #1 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.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
No lib files outputed from visual studio Exp 2010
« Reply #2 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.
Laurent Gomila - SFML developer

Aval

  • Newbie
  • *
  • Posts: 34
    • View Profile
    • Email
No lib files outputed from visual studio Exp 2010
« Reply #3 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.