Welcome to the new platform of Programmers Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use it's exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
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!!!