Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Maydell

Pages: [1]
1
The error I posted is actually the whole error. I can paste the entire output but the rest is just standard successful compiling output.

2
Since this is a linking error, that shouldn't make a difference though, right?

3
Do you mean in my code? No I don't, I usually prefer placing sf:: infront of everything instead. Should I try with using namespace sf?

4
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.

Pages: [1]