문제

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 TCC is 32 bit. In that situation C:\WINDOWS\system32\winsock.dll is the 64 bit version of winsock. Try it this way:

tiny_impdef C:\WINDOWS\SysWOW64\winsock.dll -o winsock.def

to pick up winsock from the 32 bit system directory.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top