From: Grzegorz A. H. <gr...@te...> - 2002-11-27 00:27:11
|
On Fri, Nov 22, 2002 at 04:30:02PM -0200, Rodrigo Freitas wrote: > Hi.... > I'm building a application, for Linux Mandrake 9.0 using gcc 3.0 > and allegro 4.1.4, that runnnig on console mode, pressing a key, > it turns in to graphic mode, and when I press some other key, > it returns to console mode. When runnig that same application on > linux graphic mode, bringin it from some terminal, pressing a key, > it opens a 640x480 window, and when a key is pressed on that window, > it has to close and return to shell. But it doesn't, when I press > a key on the graphic window from my program, it stay on the screen, > and my program keeps running normaly on the terminal... Your code is correct, unluckily Allegro decides to keep the window open. While this has never been a problem for graphic applications which end when they close the graphic screen, I understand that you feel this as a bug, or just wrong behaviour. Feel free to patch this behaviour if you need to, code or documentation, whichever you prefer. >From <all...@ca...> Tue Nov 26 17:03:36 2002 Received: from mail.libertysurf.net [213.36.80.91] by canvaslink.com with ESMTP (SMTPD32-6.00) id AFB671E010A; Tue, 26 Nov 2002 17:03:34 -0500 Received: from localhost.localdomain (212.83.191.252) by mail.libertysurf.net (6.5.026) id 3DE3793500011DF0 for al...@ca...; Tue, 26 Nov 2002 23:00:44 +0100 Content-Type: text/plain; charset="iso-8859-1" From: Eric Botcazou <ebo...@li...> To: al...@ca... Date: Tue, 26 Nov 2002 22:53:51 +0100 User-Agent: KMail/1.4.1 References: <001c01c29234$cbe2fa80$3061933e@delen> <200...@li...> <000701c29578$38028aa0$1ba9933e@delen> In-Reply-To: <000701c29578$38028aa0$1ba9933e@delen> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200...@li...> Subject: Re: [AL] Problem installation allegro with bcc32 Precedence: bulk Sender: all...@ca... Reply-To: al...@ca... X-UIDL: 337902225 Status: O Content-Length: 471 Lines: 13 > tests\win\dibgrab.c: > ilink32 -x -q -Gn -aa -Tpe c0w32 > obj\bcc32\alleg\dibgrab.obj,tests\win\dibgrab.e > xe,,lib\bcc32\alleg.lib cw32 import32 > Fatal: Unable to open file 'C0W32.OBJ' > make.exe: *** [tests/win/dibgrab.exe] Error 2 Your BCC is not properly configured. In particular, you should have two=20 configuration files, named bcc32.cfg and ilink32.cfg, in the /bin directo= ry=20 of your BCC tree. See the documentation of the compiler. --=20 Eric Botcazou >From <all...@ca...> Tue Nov 26 19:18:57 2002 Received: from web10605.mail.yahoo.com [216.136.130.169] by canvaslink.com (SMTPD32-6.00) id AF6D60500FE; Tue, 26 Nov 2002 19:18:53 -0500 Message-ID: <200...@we...> Received: from [204.227.170.70] by web10605.mail.yahoo.com via HTTP; Tue, 26 Nov 2002 16:16:03 PST Date: Tue, 26 Nov 2002 16:16:03 -0800 (PST) From: Steven Fullmer <tea...@ya...> To: al...@ca... In-Reply-To: <5.0...@oi...> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [AL] patched djgpp libc Precedence: bulk Sender: all...@ca... Reply-To: al...@ca... X-UIDL: 337902226 Status: O Content-Length: 1904 Lines: 47 I had this exact problem with MinGW, MSVC, as well as DJGPP. I even completely deleted the /djgpp and /allegro directories and re-unzipped them, tried 'make' again... It still crashed with a va_list error. And then one morning, I woke up with an idea, that worked beautifully. Maybe it helps you: I had several things SET, such as the following: SET MINGDIR=D:\MINGW SET MSVCDIR=D:\PROGRA~1\...\MSVC\BIN SET RSXNTDJ=D:\DJGPP\RSXNTDJ\BIN SET DGJPP=D:\DJGPP\DJGPP.ENV SET INCLUDE=D:\PROGRA~1\...\INCLUDE;D:\PROGRA~1\...\STUDIO\INCLUDE SET C_INCLUDE_PATH=D:\DJGPP\RSXNTDJ\INCLUDE SET LIB=... SET DEBUGMODE=1 SET PROFILEMODE=1 as well as having the %MSVCDIR%, %MINGW%, and %DJGPP% all in my path. (I put the DJGPP path before MINGW whenever I used MinGW, or switched them whenever I used DJGPP, but the others were still on the path.) When an old Allegro (4.02) didn't even compile any more without problems from a fresh re-unzip, I knew something was up. So I took out EVERYTHING, including the LIB=, DEBUGMODE=, and PROFILEMODE= and ran 'make'. I also removed everything but the single compiler (three of the four: DJGPP, MINGW, RSXNTDJ and MSVC) from my path It worked without a single problem. I then added only the settings that the others needed and removed anything remotely related to DJGPP, and MinGW works, RSXNTDJ works, etc. See if that helps at all. Doing that got rid of all my va_list problems (I'm hoping I can now install and check out the 4.15 WIPs to see if I can 'not' have problems there, too). --- aj <aj...@oi...> wrote: > i get 'va_list' incompatibility errors.. > allegro's FAQ says to patch gcc and re-build it. > > surely there is a patched build of djgpp somewhere on the net... > does anyone know where ? > > aj. __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com >From <all...@ca...> Tue Nov 26 19:59:39 2002 Received: from priv-edtnes09-hme0.telusplanet.net [199.185.220.235] by canvaslink.com with ESMTP (SMTPD32-6.00) id A8F97020102; Tue, 26 Nov 2002 19:59:37 -0500 Received: from natasha ([142.59.214.69]) by priv-edtnes09-hme0.telusplanet.net (InterMail vM.5.01.05.17 201-253-122-126-117-20021021) with ESMTP id <20021127005647.WWQO3867.priv-edtnes09-hme0.telusplanet.net@natasha> for <al...@ca...>; Tue, 26 Nov 2002 17:56:47 -0700 Content-Type: text/plain; charset="iso-8859-1" From: Thomas Fjellstrom <tfj...@te...> To: al...@ca... Date: Tue, 26 Nov 2002 17:56:40 -0700 User-Agent: KMail/1.4.3 References: <200...@we...> In-Reply-To: <200...@we...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <200...@te...> Subject: Re: [AL] patched djgpp libc Precedence: bulk Sender: all...@ca... Reply-To: al...@ca... X-UIDL: 337902227 Status: O Content-Length: 2251 Lines: 48 On November 26, 2002 05:16 pm, Steven Fullmer wrote: > I had this exact problem with MinGW, MSVC, as well as DJGPP. I even > completely deleted the /djgpp and /allegro directories and > re-unzipped them, tried 'make' again... It still crashed with a > va_list error. And then one morning, I woke up with an idea, that > worked beautifully. Maybe it helps you: > > I had several things SET, such as the following: > SET MINGDIR=D:\MINGW > SET MSVCDIR=D:\PROGRA~1\...\MSVC\BIN > SET RSXNTDJ=D:\DJGPP\RSXNTDJ\BIN > SET DGJPP=D:\DJGPP\DJGPP.ENV > SET INCLUDE=D:\PROGRA~1\...\INCLUDE;D:\PROGRA~1\...\STUDIO\INCLUDE > SET C_INCLUDE_PATH=D:\DJGPP\RSXNTDJ\INCLUDE > SET LIB=... > SET DEBUGMODE=1 > SET PROFILEMODE=1 > > as well as having the %MSVCDIR%, %MINGW%, and %DJGPP% all in my path. > (I put the DJGPP path before MINGW whenever I used MinGW, or > switched them whenever I used DJGPP, but the others were still on the > path.) > When an old Allegro (4.02) didn't even compile any more without > problems from a fresh re-unzip, I knew something was up. So I took > out EVERYTHING, including the LIB=, DEBUGMODE=, and PROFILEMODE= and > ran 'make'. I also removed everything but the single compiler (three > of the four: DJGPP, MINGW, RSXNTDJ and MSVC) from my path > It worked without a single problem. I then added only the settings > that the others needed and removed anything remotely related to > DJGPP, and MinGW works, RSXNTDJ works, etc. > > See if that helps at all. Doing that got rid of all my va_list > problems (I'm hoping I can now install and check out the 4.15 WIPs to > see if I can 'not' have problems there, too). I suggest this method as well, with a twist :) (which I know other people use...) You make a batch file for each compiler (ming, djgpp, etc), then create a link to command.com (one for each compiler) that has the 'batchfile' option set to the right batch file. then when you exec that link it pops up a dos box ready to do stuff with _just_ one compiler. Heck It doesn't even have to be pointed at command.com, for MSVC you'd probably want to point it at the msvc .exe, or for dev-c++ youd point it at the IDE :) Just a thought. -- Thomas Fjellstrom tfj...@te... http://strangesoft.net >From <all...@ca...> Tue Nov 26 23:35:33 2002 Received: from mail3.alphalink.com.au [202.161.124.195] by canvaslink.com with ESMTP (SMTPD32-6.00) id AB9361400F2; Tue, 26 Nov 2002 23:35:31 -0500 Received: from jane.oishii.org (d24-ds11-mel.alphalink.com.au [202.161.102.88]) by mail3.alphalink.com.au (8.12.5/8.9.3) with ESMTP id gAR4WXKL019112 for <al...@ca...>; Wed, 27 Nov 2002 15:32:36 +1100 Message-Id: <5.0...@oi...> X-Sender: aj...@oi...@oishii.org (Unverified) X-Mailer: QUALCOMM Windows Eudora Version 5.0.2 Date: Tue, 26 Nov 2002 14:00:12 +1100 To: al...@ca... From: aj <aj...@oi...> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Subject: [AL] FAQ question.. help! Precedence: bulk Sender: all...@ca... Reply-To: al...@ca... X-UIDL: 337902228 Status: O Content-Length: 663 Lines: 28 my system... win2k, djgpp 2.04(alpha). from the FAQ. DOS section: Compile errors scroll off the screen too quickly for me to read them! GNU tools write their error messages to the error stream, stderr. Unfortunately command.com is too stupid to know how to redirect this, but fortunately DJ was smart enough to work around that, so you can use his redir program to capture the output messages, for example redir -eo make > logfile.txt i tried this, and i got the message.. --snip from console-- logfile.txt 38 26-11-02 13:56:36 D:\temp\ALLEGR~1\allegro>type logfile.txt The Vdm Redirector is already loaded now what do i do ? |