Compiling under MinGW-64 with UNICODE support (-municode linker flag) requires wWinMain as the entry point to the executable.
Both UNICODE and _UNICODE are defined in my project.
I use the following workaround for now (juice_Initialization.h, from line 96)
#if defined (WINAPI) || defined (_WINDOWS_) #define JUCE_MAIN_FUNCTION int __stdcall WinMain (HINSTANCE, HINSTANCE, const LPSTR, int) #elif defined (UNICODE) #define JUCE_MAIN_FUNCTION int __stdcall wWinMain (void*, void*, const wchar_t*, int) #elif defined (_UNICODE) #define JUCE_MAIN_FUNCTION int __stdcall WinMain (void*, void*, const wchar_t*, int) #else #define JUCE_MAIN_FUNCTION int __stdcall WinMain (void*, void*, const char*, int) #endif
Thanks.