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 - daniel08

Pages: [1]
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

2
General discussions / Re: static linking
« on: October 13, 2023, 03:30:41 pm »
ye i have SFML_STATIC and linked sfml-network-s

3
General discussions / static linking
« on: October 12, 2023, 11:08:34 pm »
why does it say undefined reference when static linking.
im trying to create a sf::tcpsocket
it says exit code 1

Pages: [1]