Hi!!
I am not able to compile a test program on solaris using winegcc tool.  Can anybody help?
 
Here's the program source code:
 
// file test.cpp
#include <stdio.h>
#include <windows.h>
 
int main ()
{
        SYSTEMTIME lpSystemTime;
 
        GetSystemTime(&lpSystemTime);
        printf("Today is: %d/%d/%d\n", lpSystemTime.wYear,
                        lpSystemTime.wMonth, lpSystemTime.wDay);
        return 0;
}
When I try to compile it using winegcc, it gives following error message:
testuser@testbox:~/test >wineg++ test.cpp
winegcc: -fshort-wchar failed.
 
On adding a flag '-v' with wineg++, a detailed error message is displayed:
testuser@testbox:~/test >wineg++ -v test.cpp
-fshort-wchar -DWINE_UNICODE_NATIVE -D_REENTRANT -fPIC -DWIN32 -D_WIN32 -D__WIN32 -D__WIN32__ -D__WINNT -D__WINNT__ -D__stdcall=__attribute__((__stdcall__)) -D__cdecl=__attribute__((__cdecl__)) -D__fastcall=__attribute__((__fastcall__)) -D_stdcall=__attribute__((__stdcall__)) -D_cdecl=__attribute__((__cdecl__)) -D_fastcall=__attribute__((__fastcall__)) -D__declspec(x)=__declspec_##x -D__declspec_align(x)=__attribute__((aligned(x))) -D__declspec_allocate(x)=__attribute__((section(x))) -D__declspec_deprecated=__attribute__((deprecated)) -D__declspec_dllimport=__attribute__((dllimport)) -D__declspec_dllexport=__attribute__((dllexport)) -D__declspec_naked=__attribute__((naked)) -D__declspec_noinline=__attribute__((noinline)) -D__declspec_noreturn=__attribute__((noreturn)) -D__declspec_nothrow=__attribute__((nothrow)) -D__declspec_novtable=__attribute__(()) -D__declspec_selectany=__attribute__((weak)) -D__declspec_thread=__thread -D__WINE__ -D__int8=char -D__int16=short -D__int32=int -D__int64=long long -c -o test-9pH6Aj.o -v test.cpp -isystem/opt/cfw/wine/include/wine/windows
winegcc: -fshort-wchar failed.
 
 
I can see a lot of compile flags/options.  I want to be able to enable/disable these options.  Or if there is some other way to be able to compile the code using wingcc, pleae tell me.  The code works well on windows.  I even managed to compile it using gcc, but it resulted in coredump. If somebody can guide me how to compile an application using winelib, which can run on solaris.  I am getting linker/loader errors.
 
thanks!!
Vikas Gera