4
« on: April 18, 2016, 09:36:28 pm »
Hello SFML-community!
I've been struggling all day with trying to compile my SFML-project using static libraries and I think I've almost gotten it to work but now I get an error telling me I have multiple definitions of `socket'. I'm linking the following libraries when compiling:
-static-libgcc -static-libstdc++ -lsfml-network-s -lsfml-graphics-s -lsfml-window-s -lsfml-system-s -lopengl32 -ljpeg -lwinmm -lgdi32 -lws2_32
When it gets to the ws2_32 library I get the error:
C:/(.......really long path......)/lib/libws2_32.a(dwzfs00181.o):(.text+0x0): multiple definition of `socket'
main.o:main.cpp:(.bss+0x0): first defined here
I've included my Makefile. Sorry if I missed some other important information, I'll be happy to post anything that could help you get an idea about what could be the problem.