SFML community forums
Help => General => Topic started by: Shimajda on April 11, 2010, 09:43:23 pm
-
Hi
I cant get to work SFML 1.6 static librarys, dynamic version works.
Some details:
WinXP Proff. SP3
Code::Blocks 8.02
MinGW 5.1.6
Linker:
-lsfml-network-s
#include <SFML/Network.hpp>
using namespace std;
int main()
{
sf::SocketTCP sock;
sock.IsValid();
return 0;
}
Errors:
http://www.copypastecode.com/26241/
-
SFML 1.6 is compiled with gcc 4.4, which is not compatible with gcc 3.4.5.
-
Ok i've used TDM/MinGW Installer 1.908.0.
I have mingw32-gcc <TDM-2 mingw32> 4.4.1
Now theres only 20 errors:
http://www.copypastecode.com/26252/
Ive tried to use gcc 4.4 from tutorials with no results.
In code blocks settings i have:
C++ compiler: mingw32-g++.exe (also 4.4.1)
Linker for dynamic libs: mingw32-g++.exe
Linker for static libs: ar.exe
I think i need some more help :oops:
-
I think that the TDM build is not compatible with the MinGW one (the one that is used by SFML).
-
Got it to work.
gcc 4.4 from tutorial works after i reinstaled C::B and removed its old settings.
Thanks for fast reply.
-
How did you install a new version of mingw?
-
Ive removed the old one from C::B and extracted the new in to the same directory.
After that in C::B compiler options check C++ compiler and linker for dynamic libs, both should be set to "mingw32-g++.exe".