• Welcome to Overclockers Forums! Join us to reply in threads, receive reduced ads, and to customize your site experience!

Trouble with my socks...

Overclockers is supported by our readers. When you click a link to make a purchase, we may earn a commission. Learn More.

DoubleHelix

New Member
Joined
Feb 24, 2004
Can someone give me an idea what is wrong here? I know it doesn't have much to do with my code because this happens when I try to compile any socket source. Any ideas? I'll post the source if needed.

Compiler: Default compiler
Building Makefile: "C:\Dev-Cpp\Makefile.win"
Executing make...
make.exe -f "C:\Dev-Cpp\Makefile.win" all
g++.exe -c main.cpp -o main.o -I"C:/Dev-Cpp/include/c++" -I"C:/Dev-Cpp/include/c++/mingw32" -I"C:/Dev-Cpp/include/c++/backward" -I"C:/Dev-Cpp/include"

g++.exe main.o -o "Project1.exe" -L"C:/Dev-Cpp/lib"

main.o(.text+0x5e):main.cpp: undefined reference to `WSAStartup@8'
main.o(.text+0x8d):main.cpp: undefined reference to `socket@12'
main.o(.text+0xbe):main.cpp: undefined reference to `WSAGetLastError@0'
main.o(.text+0xd4):main.cpp: undefined reference to `WSACleanup@0'

make.exe: *** [Project1.exe] Error 1

Execution terminated

::EDIT:: I'm an idjit, I didn't link the winsock library, BAH!
 
Last edited:
Back