Alright I've got sortof a test script going...
It just keeps throwing
Code:
\usr\src\debug\cygwin-2.3.1-1\winsup\cygwin\lib\libcmain.c|39|undefined reference to `WinMain'|
Its the only compiler Error I get.
I took that code in like 39 from the example plugin:
Code:
#ifdef _WIN32
/* Helper function to convert wchar_T to Utf-8 encoded strings on Windows */
static int wcharToUtf8(const wchar_t* str, char** result) {
int outlen = WideCharToMultiByte(CP_UTF8, 0, str, -1, 0, 0, 0, 0);
*result = (char*)malloc(outlen);
if(WideCharToMultiByte(CP_UTF8, 0, str, -1, *result, outlen, 0, 0) == 0) {
*result = NULL;
return -1;
}
return 0;
}
#endif
I use Cygwin GCC to compile, and I have no idea why it throws an Error.
Anyone know?
Is that code really necessary?