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

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - SquireNed

Pages: [1]
1
General / Re: SFML issue Code::Blocks and static libraries
« on: August 05, 2014, 01:38:58 am »
I had the order as they should be, but I wasn't including sfml-main (as this configuration seems to), and whatnot. In either case, the SFML Project works (maybe the tutorial should be updated?), and stuff compiles fine with static libraries now. Thanks for the help!

2
General / SFML issue Code::Blocks and static libraries
« on: August 04, 2014, 02:03:26 am »
So I'm getting the following compile-time error while trying to use a static library:

Quote
undefined reference to `_imp___ZN2sf6StringC1EPKcRKSt6locale'

This is matched by twenty or so companions, basically three or four for each line of code in the example main.cpp given in the tutorial (http://www.sfml-dev.org/tutorials/2.1/start-cb.php). There's a similar post around here on this forum that suggests it is a consequence of using the wrong version of SFML, but I've double checked and I'm using SJLJ and have my stuff pointed to SJLJ SFML.

Here's what I've double checked so far:

  • I am linking to libsfml-xxx-s-d for my debug setup and libsfml-xxx-s for my release setup, and they go in graphics->window->system order as shown in the tutorial.
  • I have SFML_STATIC set in my #defines.
  • The program works if I have my setup use the SJLJ DLL's

Long story short, I'd like to at least be able to use the static library functionality, but it doesn't seem happy when I try to do so.

Pages: [1]
anything