|
From: P.D. v. Z. <pa...@my...> - 2003-10-29 16:03:58
|
Link the appropriate libraries :P I believe you need libws2_32.a (if I guess correctly from the name I used to use in VC++... ws2_32.lib). Regards, Paul -----Original Message----- From: dev...@li... [mailto:dev...@li...] On Behalf Of Alain Paschoud Sent: Wednesday, October 29, 2003 3:13 PM To: dev...@li... Subject: [Dev-C++] Linker problem Hi all, I just redo my program to use winsock.h instead of <sys/sock.h>. Now, the header is found, and there is no compilation problem. But the linker can't find the functions I use (like "socket", "htons", "bind", etc.). This means, I suppose, that at least one library is not found by the linker (message : "Undifined reference to socket@12"). What should I do so that the linker can find the necessary functions ? Thank you for any help. -- ----------------------------------------------- Alain Paschoud Jeux de groupes pour des enfants : http://www.webalain.ch/jeux Groupe choral "Gospel Melody" : http://www.gospelmelody.ch Annuaire des choeurs de Suisse : http://www.choeurs.ch Chorverzeichnis der Schweiz : http://www.gesang.ch ----------------------------------------------- ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ Dev-cpp-users mailing list Dev...@li... TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm https://lists.sourceforge.net/lists/listinfo/dev-cpp-users |