1
General discussions / Re: static linking
« on: October 13, 2023, 03:31:52 pm »
error message is:
Quote
g++.exe -DSFML_STATIC -ID:\SFML\include -c C:\Users\Daniel\OneDrive\Desktop\projects\learn.cpp -o C:\Users\Daniel\OneDrive\Desktop\projects\learn.o
g++.exe -LD:\SFML\lib -o C:\Users\Daniel\OneDrive\Desktop\projects\learn.exe C:\Users\Daniel\OneDrive\Desktop\projects\learn.o -lsfml-graphics-s -lsfml-audio-s -lsfml-network-s -lsfml-window-s -lsfml-system-s
C:\Users\Daniel\OneDrive\Desktop\projects\learn.o:learn.cpp:(.text+0x16): undefined reference to `sf::TcpSocket::TcpSocket()'
C:\Users\Daniel\OneDrive\Desktop\projects\learn.o:learn.cpp:(.text$_ZN2sf9TcpSocketD1Ev[__ZN2sf9TcpSocketD1Ev]+0x26): undefined reference to `sf::Socket::~Socket()'
collect2.exe: error: ld returned 1 exit status