<!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. Can anybody
help?</FONT></SPAN></DIV>
<DIV><SPAN class=546204105-03032006><FONT size=2></FONT></SPAN> </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> </DIV>
<DIV><SPAN class=546204105-03032006><FONT size=2>// file
test.cpp</FONT></SPAN></DIV>
<DIV><SPAN class=546204105-03032006><FONT size=2>#include
<stdio.h><BR>#include <windows.h></FONT></SPAN></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><SPAN class=546204105-03032006><FONT size=2>int main
()<BR>{<BR> SYSTEMTIME
lpSystemTime;</FONT></SPAN></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><SPAN class=546204105-03032006><FONT
size=2>
GetSystemTime(&lpSystemTime);<BR>
printf("Today is: %d/%d/%d\n", lpSystemTime.wYear,
<BR>
lpSystemTime.wMonth,
lpSystemTime.wDay);<BR> 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="MS Pゴシック">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="MS Pゴシック"><A
href="mailto:testuser@testbox:~/test">testuser@testbox:~/test</A> >wineg++
test.cpp<BR>winegcc: -fshort-wchar failed.</FONT></FONT></SPAN></DIV>
<DIV><SPAN class=546204105-03032006><FONT size=2><FONT
face="MS Pゴシック"></FONT></FONT></SPAN> </DIV>
<DIV><SPAN class=546204105-03032006><FONT size=2><FONT face="MS Pゴシック">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="MS Pゴシック"><A
href="mailto:testuser@testbox:~/test">testuser@testbox:~/test</A> >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="MS Pゴシック"></FONT></FONT></SPAN> </DIV>
<DIV><SPAN class=546204105-03032006><FONT size=2><FONT
face="MS Pゴシック"></FONT></FONT></SPAN> </DIV>
<DIV><SPAN class=546204105-03032006><FONT face="MS Pゴシック" size=2>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.<SPAN
class=078070809-06032006> If somebody can guide me how to compile an
application using winelib, which can run on solaris. I am
getting linker/loader errors.</SPAN></FONT></SPAN></DIV>
<DIV><SPAN class=546204105-03032006><FONT size=2><FONT
face="MS Pゴシック"></FONT></FONT></SPAN> </DIV>
<DIV><SPAN class=546204105-03032006><FONT size=2><FONT
face="MS Pゴシック">thanks!!</FONT></FONT></SPAN></DIV>
<DIV><SPAN class=546204105-03032006><FONT size=2><FONT face="MS Pゴシック">Vikas
Gera</FONT></DIV></FONT></SPAN></BODY></HTML>