tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Tinycc-devel] how can I use tcc to compile a winsock program ?


From: Cheng Jian
Subject: [Tinycc-devel] how can I use tcc to compile a winsock program ?
Date: Sat, 17 Sep 2005 06:56:21 +0000

I use tcc on windows xp, it can compile a ANSI c program perfectly.

And I copy winsock.h and libwsock32.a from mingw to tcc's include and lib directory, using "tcc -lwsock32 test.c" to compile a winsock program.
But ........

"
tcc: undefined symbol 'WSAStartup'
tcc: undefined symbol 'socket'
tcc: undefined symbol 'htons'
tcc: undefined symbol 'inet_addr'
tcc: undefined symbol 'bind'
"

what should I do ?

_________________________________________________________________
与世界各地的朋友进行交流,免费下载 MSN Messenger: http://messenger.msn.com/cn




reply via email to

[Prev in Thread] Current Thread [Next in Thread]