I have already read Tiny C Compiler (TCC) and winsock?, but I still can’t compile sockets with TCC, because when I try
tiny_impdef winsock.dll -o winsock.def
tiny_impdef responds:
Not a PE file: C:\WINDOWS\system32\winsock.dll
So how can I do to compile properly a program that use sockets? Any help will be appreciated
I’m guessing that you have a 64 bit machine and
TCCis 32 bit. In that situationC:\WINDOWS\system32\winsock.dllis the 64 bit version of winsock. Try it this way:to pick up winsock from the 32 bit system directory.