Hi everyone.
I am trying using SFML libraries on windows, making some experiments with them.
I downloaded the SFML 2.0 snapshot and compiled it using cmake + mingw 4.5. The tick on BUILD_SHARED_LIBS on cmake was disabled, so in theory I built the static libraries correctly (after that I would just give the mingw32-make command).
I use Codelite for my project... it is really similar to Code::Blocks and it uses the same MinGW I used to compile the libraries.
Later on I copied the libs and added them to a path the linker checks for libraries, (let's say SFML2/lib), and when I try to compile my really simple test program (will upload code if required) I get the following errors:
C:/develop/minepp/minepp/sfmlServer/main.cpp:8: undefined reference to `_imp___ZN2sf9UdpSocketC1Ev'
C:/develop/minepp/minepp/sfmlServer/main.cpp:9: undefined reference to `_imp___ZN2sf9UdpSocket4BindEt'
C:/develop/minepp/minepp/sfmlServer/main.cpp:21: undefined reference to `_imp___ZN2sf9IpAddressC1EPKc'
C:/develop/minepp/minepp/sfmlServer/main.cpp:21: undefined reference to `_imp___ZN2sf9UdpSocket4SendEPKcjRKNS_9IpAddressEt'
A bunch of similar errors might follow as well.
The linker options are -lsfml-system-s -lsfml-network-s.
If I link against dynamic libs everything is fine (I compiled them with Cmake by enabling the checkbox for shared libs the day before), but I need 2 extra libs for the program to start: libstdc++-6.dll and libgcc_blablabla.dll.
I really have no idea about what's going on... Clearly the linker can't find something but I got no clue on what's missing.