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

Author Topic: Non static .lib files not generated in VC++2010  (Read 3130 times)

0 Members and 1 Guest are viewing this topic.

TheBoff

  • Newbie
  • *
  • Posts: 10
    • View Profile
Non static .lib files not generated in VC++2010
« on: June 03, 2010, 06:22:48 pm »
Hello all: basically, I'm trying to compile SFML 1.6 with VC++ 2010, and everything works fine, but it's doesn't appear to be generating .lib files without the -s suffix, other than for sfml-main.

I expect this is a stupid newbie error, but could really do with some help!

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Non static .lib files not generated in VC++2010
« Reply #1 on: June 03, 2010, 06:24:46 pm »
The generated files depend on what configuration you choose. To get the static libs you have to select the Debug/Release static configuration.
Laurent Gomila - SFML developer

TheBoff

  • Newbie
  • *
  • Posts: 10
    • View Profile
Non static .lib files not generated in VC++2010
« Reply #2 on: June 03, 2010, 06:41:17 pm »
I have used every configuration.

I can make it generate the dlls (sfml-graphics-d.dll for example), or the static libraries (sfml-graphics-d-s.lib), but not the lib for the dll (sfml-graphics-d.lib)

Thanks for SFML, and all the support!

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Non static .lib files not generated in VC++2010
« Reply #3 on: June 03, 2010, 07:27:01 pm »
Ah. Then it's probably a problem with the automatic conversion. I can't help you more, you should check in the project settings where the import libraries are supposed to be created, or check your compilation log.
Laurent Gomila - SFML developer

TheBoff

  • Newbie
  • *
  • Posts: 10
    • View Profile
Non static .lib files not generated in VC++2010
« Reply #4 on: June 04, 2010, 06:58:50 pm »
Ugh: I've managed to get the lib files (the solution was to change the output directory, as has already been suggested) but when I build my app against them I get a memory access violation creating my render window.

Sorry about this, and thanks for all the help Laurent!

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Non static .lib files not generated in VC++2010
« Reply #5 on: June 04, 2010, 07:47:12 pm »
Make sure that you link to the debug libraries (-d) in debug mode.
Laurent Gomila - SFML developer

TheBoff

  • Newbie
  • *
  • Posts: 10
    • View Profile
Non static .lib files not generated in VC++2010
« Reply #6 on: June 04, 2010, 08:05:02 pm »
I am: this bug also occurs (using exactly the same settings - linked to the -d files) when using release mode.

[strike]And also when linking against the static libs.[/strike] It does work with the static libs: somewhat unsurprisingly it is helpful to remove the SFML_DYNAMIC macro...

 

anything