Due to server problems the website is temporarily offline! Visit http://www.smorgasbordet.com/pellesc/ to download Pelles C.
// Delaration & call macros#ifdef __cplusplus#define X3DDECL extern "C" __declspec(dllexport)#else#define X3DDECL#endif#define X3DCALL _stdcall#ifndef bool#define bool BOOL#endif#ifndef true#define true TRUE#endif#ifndef false#define false FALSE#endif
For start try this:Use compiler options -Ze -ZxCode: [Select]// Delaration & call macros#ifdef __cplusplus#define X3DDECL extern "C" __declspec(dllexport)#else#define X3DDECL#endif#define X3DCALL _stdcall#ifndef bool#define bool BOOL#endif#ifndef true#define true TRUE#endif#ifndef false#define false FALSE#endif
Why when i'm using "int main(int argc, char *argv[ ]) {...}" i have error - POLINK: error: Unresolved external symbol '_WinMain@16'. POLINK: fatal error: 1 unresolved external(s)