|
From: <Gua...@ne...> - 2002-02-14 20:03:17
|
I´m a Linux developer, but now i trying to build a program for windows with GCC. That´s OK, but when i call some method that´s from WindowsAPI i get a message like that: pnSocket.o(.text+0x48d):pnSocket.cpp: undefined reference to `socket@12' pnSocket.o(.text+0x5c3):pnSocket.cpp: undefined reference to `gethostbyaddr@12' pnSocket.o(.text+0x661):pnSocket.cpp: undefined reference to `gethostbyname@4' pnSocket.o(.text+0x6f0):pnSocket.cpp: undefined reference to `htons@4' pnSocket.o(.text+0x75c):pnSocket.cpp: undefined reference to `connect@12' pnSocket.o(.text+0x8a2):pnSocket.cpp: undefined reference to `WSAStartup@8' pnSocket.o(.text+0x902):pnSocket.cpp: undefined reference to `WSACleanup@0' pnSocket.o(.text+0xbff):pnSocket.cpp: undefined reference to `WSAGetLastError@0' pnSocket.o(.text+0x103b):pnSocket.cpp: undefined reference to `WSAGetLastError@0' pnSocket.o(.text+0x11bc):pnSocket.cpp: undefined reference to `recv@16' pnSocket.o(.text+0x121f):pnSocket.cpp: undefined reference to `send@16' pnSocket.o(.text+0x1251):pnSocket.cpp: undefined reference to `closesocket@4' make: *** [main] Error 1 What i doing wrong!? Or what i should do to fix it? With best wishes, Edson Alves Pereira -- /////////////////////////////////////// Better well done than well said. --//-- To follow the path: look to the master, follow the master, walk with the master, see through the master, become the master. Modern Zen poem /////////////////////////////////////// __________________________________________________________________ Your favorite stores, helpful shopping tools and great gift ideas. Experience the convenience of buying online with Shop@Netscape! http://shopnow.netscape.com/ Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/ |