Re: [Dev-C++] Linking error (help please!)
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Flavio de S. <fla...@se...> - 2001-11-21 05:10:32
|
I did it, but I had to do one more thing: change the main() function to the= =20 following. int STDCALL WinMain (HINSTANCE hInst, HINSTANCE hPrev, LPSTR lpCmd, int nShow) Then it worked well. Tks everybody that helped me. Flavio. At 09:44 19/11/01 +0100, you wrote: > > :\meus documentos\projetos\sistema de > > >e-mails\source\socketconnection\socket_test\socket_t2.o(.text+0xad):socket_= t >2.cpp: > > undefined reference to `WSAStartup@8' > >you need to add libwsock32.a to your projec. Go to Project->project >option->Load object files and select libwsock32.a from lib directory. >---------------------------------------------------------------------------= - >--- >If debugging is the process of removing bugs, >then programming must be the process of putting them in. >---------------------------------------------------------------------------= - >--- Flavio de Souza fla...@ne... ICQ:78458203 " Fazendo o que est=E1 ao nosso alcance, beneficiamos a todos. Tentando apenas ter id=E9ias para salvar o mundo, n=E3o ajudamos nem a n=F3s mesmos." |