From: Matthew E. <ma...@ya...> - 2001-03-30 05:57:57
|
Hey all, I just got done setting up allegro on my linux box, everything installed fine, and the example programs work. but, when I go to run a game I wrote using DJGPP and allegro on my DOS/Win box, I get the following error: Shutting down Allegro due to signal #11 Segmentation fault if it helps, I used this to compile it: gcc *.c -o spongex `allegro-config --libs` and it didn't report any errors btw, I did add the END_OF_MAIN(); at, whell, the end of the main function :-) Thanks for any help, Matt >From <all...@ca...> Thu Mar 29 22:07:20 2001 Received: from mail2.rdc2.ab.home.com [24.64.2.49] by canvaslink.com with ESMTP (SMTPD32-6.00) id A867EA10272; Thu, 29 Mar 2001 22:07:19 -0500 Received: from home.com ([24.70.88.73]) by mail2.rdc2.ab.home.com (InterMail vM.4.01.03.20 201-229-121-120-20010223) with ESMTP id <200...@ho...> for <al...@ca...>; Thu, 29 Mar 2001 19:05:16 -0800 X-Sender: moose Message-ID: <3AC...@ho...> Date: Thu, 29 Mar 2001 20:06:55 -0700 From: Thomas Fjellstrom <tfj...@ho...> X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.4.3-pre4 i686) MIME-Version: 1.0 To: al...@ca... References: <01032921555001.13082@sponge.evans> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: [AL] allegro compile error Precedence: bulk Sender: all...@ca... Reply-To: al...@ca... X-UIDL: 286409336 Status: O Content-Length: 923 Lines: 29 Matthew Evans wrote: > > Hey all, > > I just got done setting up allegro on my linux box, everything installed > fine, and the example programs work. > > but, when I go to run a game I wrote using DJGPP and allegro on my DOS/Win > box, I get the following error: > > Shutting down Allegro due to signal #11 > Segmentation fault > > if it helps, I used this to compile it: > gcc *.c -o spongex `allegro-config --libs` > and it didn't report any errors > > btw, I did add the END_OF_MAIN(); at, whell, the end of the main function :-) > your most likely accessing memory you shouldn't (ie: a NULL pointer) In allegro this can happen quite reqularly for ported games if you don't check the return value of 'set_gfx_mode'. Other than that, I dont have a clue cause I cant see the source. :) -- "Computer programmers don't byte, they nybble a bit." Thomas Fjellstrom tfj...@ho... http://strangesoft.net/ >From <all...@ca...> Thu Mar 29 22:11:19 2001 Received: from pony-express.cs.rit.edu [129.21.30.24] by canvaslink.com with ESMTP (SMTPD32-6.00) id A95617300166; Thu, 29 Mar 2001 22:11:18 -0500 Received: from gillius (res138b-180.rh.rit.edu [129.21.138.180]) by pony-express.cs.rit.edu (8.9.3/8.9.3) with ESMTP id WAA02996 for <al...@ca...>; Thu, 29 Mar 2001 22:09:15 -0500 (EST) From: "Gillius" <gi...@we...> To: al...@ca... Date: Thu, 29 Mar 2001 22:11:13 -0500 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Message-ID: <3AC3B301.343.20D5FA4@localhost> Priority: normal In-reply-to: <01032921555001.13082@sponge.evans> X-mailer: Pegasus Mail for Win32 (v3.12c) Subject: Re: [AL] allegro compile error Precedence: bulk Sender: all...@ca... Reply-To: al...@ca... X-UIDL: 286409337 Status: O Content-Length: 958 Lines: 28 On 29 Mar 2001, at 21:55, Matthew Evans wrote: > Hey all, > > I just got done setting up allegro on my linux box, everything installed > fine, and the example programs work. > > but, when I go to run a game I wrote using DJGPP and allegro on my DOS/Win > box, I get the following error: > > Shutting down Allegro due to signal #11 > Segmentation fault > > if it helps, I used this to compile it: > gcc *.c -o spongex `allegro-config --libs` > and it didn't report any errors > > btw, I did add the END_OF_MAIN(); at, whell, the end of the main function :-) > > Thanks for any help, > Matt NULL pointer access is not catched in DOS. This only occurs when using true DOS mode with cwsdpmi as the DPMI provider, or Windows, or Linux... Well anything but a dos box under Windows. You have a bug in your code that only occured when you ran the program in a different situation and you were simply lucky before that it didn't happen. Gillius >From <all...@ca...> Thu Mar 29 23:17:10 2001 Received: from helugate.hel.adcore.com [62.236.90.67] by canvaslink.com with ESMTP (SMTPD32-6.00) id A8C5183C0166; Thu, 29 Mar 2001 23:17:09 -0500 Received: from helumail.hel.adcore.com (ro...@he... [172.16.6.2]) by helugate.hel.adcore.com (8.9.3/8.9.3/Debian 8.9.3-21) with ESMTP id HAA29485 for <al...@ca...>; Fri, 30 Mar 2001 07:15:00 +0300 Received: from adcore.com (IDENT:nle...@tk... [172.16.7.86]) by helumail.hel.adcore.com (8.9.3/8.9.3/Debian/GNU) with ESMTP id HAA03664 for <al...@ca...>; Fri, 30 Mar 2001 07:15:00 +0300 Message-ID: <3AC...@ad...> Date: Fri, 30 Mar 2001 06:59:39 +0300 From: Nathan Letwory <nat...@ad...> Organization: Adcore OY User-Agent: Mozilla/5.0 (X11; U; Linux 2.2.16-22 i686; en-US; 0.8) Gecko/20010217 X-Accept-Language: en MIME-Version: 1.0 To: al...@ca... References: <F13...@ho...> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Subject: Re: [AL] Distributing compiled programs Precedence: bulk Sender: all...@ca... Reply-To: al...@ca... X-UIDL: 286409338 Status: O Content-Length: 1525 Lines: 37 Sam Cayhall wrote: > how do I compile a program and send it to someone else, without them > having to have the DLL for MSVC/Allegro? if i were to send someone a > program without them having the DLL, it would give them an error and > they couldnt run it. readme.vc states that one has to set the environment variable STATIC_LINK=1 and then to make/make install it. -- -- Nathan Letwory Software Developer Adcore Finland - Digital Business Creators Phone: +385 2 512 44 00 Fax: +358 2 512 44 11 Direct: +358 2 512 44 72 Mobile: +358 40 769 13 89 Visiting address: Läntinen Pitkäkatu 35 FIN - 20100 Turku, Finland --------------------------------------------------------------------------- This e-mail is confidential and may contain legally privileged information. It is intended solely for the addressee(s) and acces by anyone else is unauthorised. Disclosure, copying or distribution, in whole or part, is strictly prohibited. If you are not the intended recipient, please notify us immediately by telephone or e-mail and delete this message and any attachments from your system without retaining a copy. E-mail may be subject to data corruption, interception, unauthorised amendment, tampering and viruses. We only send and recieve e-mails on the basis that we are not liable for any such corruption, interception, amendment, tampering or viruses or any consequence thereof. --------------------------------------------------------------------------- |