SFML community forums
Help => General => Topic started by: Karsomir on August 21, 2013, 02:24:22 am
-
I've recently changed compiler from earlier version of gcc 4.7.0 into gcc 4.8.1 from MinGW-builds project.
I've compiled sfml from sources, everything went okay, but somehow g++ refuses to see headers from sfml.
File it complains is exactly there "C:\MinGW\mingw32\include\SFML" where it should be. What could it be.
(http://s1.bild.me/bilder/260513/thumb_8758994blackscreen.png) (http://www.bild.me/bild.php?file=8758994blackscreen.png)
-
Don't copy SFML headers and libs in your MinGW folder, this is a really bad habit. Keep SFML in its own folder, and tell the compiler and linker where it is with -I and -L options.
-
Thanks. That did the job. Still I have a problem though ... I was installing new compiler because old MinGW ( doesnt know that 'to_string' is a std member, but 4.8.1 doesn't know it either. It's kinda stupid Anyone knows how to make it work?
I found this:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52015
http://tehsausage.com/mingw-to-string
But not really sure what should I do. There is a patch for version 4.7.x that didn't worked for me when i was using 4.7.x. Any thoughts?
-
I was installing new compiler because old MinGW ( doesnt know that 'to_string' is a std member, but 4.8.1 doesn't know it either. It's kinda stupid Anyone knows how to make it work?
std::to_string is a C++11 feature, so to use it with GCC/MinGW, you'll have to add -std=c++11 to your compiler flags. ;)
-
Yeaaaah finally! Thanks a ton!