<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Message</TITLE>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2668" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=546204105-03032006><FONT size=2>Hi!!</FONT></SPAN></DIV>
<DIV><SPAN class=546204105-03032006><FONT size=2>I am not able to compile a test 
program on solaris using winegcc tool.&nbsp; Can anybody 
help?</FONT></SPAN></DIV>
<DIV><SPAN class=546204105-03032006><FONT size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=546204105-03032006><FONT size=2>Here's the program source 
code:</FONT></SPAN></DIV>
<DIV><SPAN class=546204105-03032006><FONT size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=546204105-03032006><FONT size=2>// file 
test.cpp</FONT></SPAN></DIV>
<DIV><SPAN class=546204105-03032006><FONT size=2>#include 
&lt;stdio.h&gt;<BR>#include &lt;windows.h&gt;</FONT></SPAN></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><SPAN class=546204105-03032006><FONT size=2>int main 
()<BR>{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SYSTEMTIME 
lpSystemTime;</FONT></SPAN></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><SPAN class=546204105-03032006><FONT 
size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
GetSystemTime(&amp;lpSystemTime);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
printf("Today is: %d/%d/%d\n", lpSystemTime.wYear, 
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
lpSystemTime.wMonth, 
lpSystemTime.wDay);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return 
0;<BR>}<BR></FONT></SPAN><SPAN class=546204105-03032006><FONT 
size=2></FONT></SPAN></DIV>
<DIV><SPAN class=546204105-03032006><FONT size=2><FONT face="&#65325;&#65331; &#65328;&#12468;&#12471;&#12483;&#12463;">When I 
try to compile it using winegcc, it gives following error 
message:</FONT></FONT></SPAN></DIV>
<DIV><SPAN class=546204105-03032006><FONT size=2><FONT face="&#65325;&#65331; &#65328;&#12468;&#12471;&#12483;&#12463;"><A 
href="mailto:testuser@testbox:~/test">testuser@testbox:~/test</A> &gt;wineg++ 
test.cpp<BR>winegcc: -fshort-wchar failed.</FONT></FONT></SPAN></DIV>
<DIV><SPAN class=546204105-03032006><FONT size=2><FONT 
face="&#65325;&#65331; &#65328;&#12468;&#12471;&#12483;&#12463;"></FONT></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=546204105-03032006><FONT size=2><FONT face="&#65325;&#65331; &#65328;&#12468;&#12471;&#12483;&#12463;">On adding 
a flag '-v' with wineg++, a detailed error message is 
displayed:</FONT></FONT></SPAN></DIV>
<DIV><SPAN class=546204105-03032006><FONT size=2><FONT face="&#65325;&#65331; &#65328;&#12468;&#12471;&#12483;&#12463;"><A 
href="mailto:testuser@testbox:~/test">testuser@testbox:~/test</A> &gt;wineg++ -v 
test.cpp<BR>-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 
<BR>winegcc: -fshort-wchar failed.</FONT></FONT></SPAN></DIV>
<DIV><SPAN class=546204105-03032006><FONT size=2><FONT 
face="&#65325;&#65331; &#65328;&#12468;&#12471;&#12483;&#12463;"></FONT></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=546204105-03032006><FONT size=2><FONT 
face="&#65325;&#65331; &#65328;&#12468;&#12471;&#12483;&#12463;"></FONT></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=546204105-03032006><FONT face="&#65325;&#65331; &#65328;&#12468;&#12471;&#12483;&#12463;" size=2>I can see a lot 
of compile flags/options.&nbsp; I want to be able to enable/disable these 
options.&nbsp; Or if there is some other way to be able to compile the code 
using wingcc, pleae tell me.&nbsp; The code works well on windows.&nbsp; I even 
managed to compile it using gcc, but it resulted in coredump.<SPAN 
class=078070809-06032006>&nbsp;If somebody can guide me how to compile an 
application using winelib, which can run on solaris.&nbsp; I am 
getting&nbsp;linker/loader errors.</SPAN></FONT></SPAN></DIV>
<DIV><SPAN class=546204105-03032006><FONT size=2><FONT 
face="&#65325;&#65331; &#65328;&#12468;&#12471;&#12483;&#12463;"></FONT></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=546204105-03032006><FONT size=2><FONT 
face="&#65325;&#65331; &#65328;&#12468;&#12471;&#12483;&#12463;">thanks!!</FONT></FONT></SPAN></DIV>
<DIV><SPAN class=546204105-03032006><FONT size=2><FONT face="&#65325;&#65331; &#65328;&#12468;&#12471;&#12483;&#12463;">Vikas 
Gera</FONT></DIV></FONT></SPAN></BODY></HTML>