SFML community forums

Help => General => Topic started by: Shimajda on April 11, 2010, 09:43:23 pm

Title: [SOLVED] SFML 1.6 static library errors
Post 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

Code: [Select]
#include <SFML/Network.hpp>
using namespace std;
int main()
{
    sf::SocketTCP sock;
    sock.IsValid();
    return 0;
}


Errors:
http://www.copypastecode.com/26241/
Title: [SOLVED] SFML 1.6 static library errors
Post by: Laurent on April 11, 2010, 10:09:11 pm
SFML 1.6 is compiled with gcc 4.4, which is not compatible with gcc 3.4.5.
Title: [SOLVED] SFML 1.6 static library errors
Post by: Shimajda on April 11, 2010, 11:38:26 pm
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:
Title: [SOLVED] SFML 1.6 static library errors
Post by: Laurent on April 11, 2010, 11:51:14 pm
I think that the TDM build is not compatible with the MinGW one (the one that is used by SFML).
Title: [SOLVED] SFML 1.6 static library errors
Post by: Shimajda on April 12, 2010, 12:17:15 am
Got it to work.
gcc 4.4 from tutorial works after i reinstaled C::B and removed its old settings.

Thanks for fast reply.
Title: [SOLVED] SFML 1.6 static library errors
Post by: wademcgillis on May 10, 2010, 04:00:13 am
How did you install a new version of mingw?
Title: [SOLVED] SFML 1.6 static library errors
Post by: Shimajda on May 10, 2010, 01:14:42 pm
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".