Hi,
I have a problem to compile my socket program.
I want to use winsock2.h, but when I compiled my program,
I got the following errors.
%gcc -lwsock32 -lws2_32 main.cpp
main.cpp: undefined reference to [EMAIL PROTECTED]'
main.cpp: undefined reference to [EMAIL PROTECTED]'
main.cpp: undefined reference to [EMAIL PROTECTED]'
main.cpp: undefined reference to [EMAIL PROTECTED]'
main.cpp: undefined reference to [EMAIL PROTECTED]'
main.cpp: undefined reference to [EMAIL PROTECTED]'
main.cpp: undefined reference to [EMAIL PROTECTED]'
main.cpp: undefined reference to [EMAIL PROTECTED]'
main.cpp: undefined reference to [EMAIL PROTECTED]'
main.cpp: undefined reference to [EMAIL PROTECTED]'
main.cpp: undefined reference to [EMAIL PROTECTED]'
collect2: ld returned 1 exit status
DLL version is 1.3.12.
I wrote program header as follows.
#define Win32_Winsock
#include <windows.h>
#include <winsock2.h>
#include <ctype.h>
#include <stdio.h>
#include <string.h>
I searched google and ML archive, but I couldn't get
enough information to solve this.
What can I do for this?
Please let me know.
Thanks,
Takeshi Honda
__________________________________________________
Do You Yahoo!?
Yahoo! BB is Broadband by Yahoo! http://bb.yahoo.co.jp/
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/