Date: Sun, 11 Jul 1999 01:18:54 -0500 From: Sergio Arizmendi Subject: RSXNTDJ 1.5 and GUI apps (Patch) To: djgpp AT delorie DOT com Message-id: <000901becb65$41b88620$a074e994@sarizmen> MIME-version: 1.0 X-Mailer: Microsoft Outlook Express 4.72.3110.1 Content-type: MULTIPART/ALTERNATIVE; BOUNDARY="Boundary_(ID_z9QgT8n2LtkmtlHGGGq/Vw)" X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 X-Priority: 3 Reply-To: djgpp AT delorie DOT com This is a multi-part message in MIME format. --Boundary_(ID_z9QgT8n2LtkmtlHGGGq/Vw) Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: quoted-printable Ok ...=20 This is what you should do to fix RSX's bug that makes all apps = "Console" type and not "GUI". Add the following line to /rsxntdj/source/emx4w32/winmain.c just after = the #includes : __asm__(".stabs \"_WinMain\",5,0,0,_WinMain"); then compile a new libmain.a this way : >gccw32 -c -O2 -Zwin32 winmain.c >ar r libmain.a winmain.o >ar s libmain.a Then copy the new libmain.a to /rsxntdj/lib And it's done! :) Now RSX knows if your app is Console or GUI :) If this helped you, please send me a mail (sarizmen AT df1 DOT telmex DOT net DOT mx), = 'cause i'm almost a newbie (i fought for hours until i made this patch = work), and i want to know if anybody else had this problem :) Sergio Arizmendi =20 --Boundary_(ID_z9QgT8n2LtkmtlHGGGq/Vw) Content-type: text/html; charset=iso-8859-1 Content-transfer-encoding: quoted-printable
Ok ...
This is what you should do to fix = RSX's bug that=20 makes all apps "Console" type and not = "GUI".
 
Add the following line to=20 /rsxntdj/source/emx4w32/winmain.c just after the #includes = :
 
__asm__(".stabs=20 \"_WinMain\",5,0,0,_WinMain");
 
then compile a new libmain.a this = way=20 :
>gccw32 -c -O2 -Zwin32 = winmain.c
>ar r libmain.a = winmain.o
>ar s libmain.a
 
Then copy the new libmain.a to=20 /rsxntdj/lib
And it's done! :) Now RSX knows if = your app is=20 Console or GUI :)
 
If this helped you, please send me a = mail (sarizmen AT df1 DOT telmex DOT net DOT mx= ), 'cause=20 i'm almost a newbie (i fought for hours until i made this patch work), = and i=20 want to know if anybody else had this problem :)
 
Sergio=20 Arizmendi
 
--Boundary_(ID_z9QgT8n2LtkmtlHGGGq/Vw)--