I have a problem with Pelles C IDE:
i am writing a simple C program that use socket connection (TCP,UDP...)
and i have inclused winsock.h and winsock2.h library in the source code.
When i try to compile, Pelles (cc.exe -> the compiler) answers with a lot
of error like:
C:PellesCIncludeWinwinreg.h(173): warning #2203: Function 'RegFlushKey' can't be __stdcall, changed to __cdecl.
C:PellesCIncludeWinwinreg.h(174): warning #2203: Function 'RegGetKeySecurity' can't be __stdcall, changed to __cdecl.
Why???? What have i to do???
I am absolutely sure that the code is correct because i have already compiled it in Linux (gcc...)(with the correct library) ad it run.
A last thing:
C:PellesCIncludeWindde.h(32): error #2186: 'unsigned short int' is an illegal bit-field type.
why??? unsigned short or int isn't ansi c???
Thank you very much!!!
0 · ·