Mail Archives: djgpp/1998/02/04/15:18:45
From: | "Andrew R. Gillett" <A DOT R DOT Gillett AT cs DOT cf DOT ac DOT uk>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | HELP! GCC hangs for no apparent reason!
|
Date: | Wed, 4 Feb 1998 19:50:07 -0800
|
Organization: | Posted through the Joint Cardiff Computing Service, Wales, UK
|
Lines: | 77
|
Message-ID: | <Pine.PCW.3.96.980204193839.2063K-100000@[131.251.42.58]>
|
NNTP-Posting-Host: | lab18.cs.cf.ac.uk
|
Mime-Version: | 1.0
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
I'm writing a game with DJGPP and Allegro, but a few lines are causing
problems:
if ( (sprite[bullet_collision_counter].spr_id == BULLET_HORIZONTAL)
|| (sprite[bullet_collision_counter].spr_id == BULLET_VERTICAL)
|| (game_counter % 2 == 0) ) // doesn't compile with any other value
If I change % 2 to % 3, GCC hangs.
Elsewhere in the program, there are two (perfectly normal) lines which are
required for a small but important purpose. GCC gives a General Protection
Fault if these lines are not commented out...
This is what my environment variables look like:
TMP=C:\WINDOWS\TEMP
TEMP=C:\WINDOWS\TEMP
PROMPT=$p$g
winbootdir=C:\WINDOWS
COMSPEC=C:\WINDOWS\COMMAND.COM
MSINPUT=C:\INTPOINT
DIRCMD=/ogn
DJGPP=C:\TOOLS\DJGPP\DJGPP.ENV
PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;C:\INTPOINT\MOUSE;C:\TOOLS;C:\DOS;C:\TOOLS\NETWORK;C:\PROGRA~1\SDD60;C:\TOOLS\DJGPP\BIN
MIDI=SYNTH:1 MAP:E
SOUND=C:\PROGRA~1\CREATIVE\CTSND
windir=C:\WINDOWS
BLASTER=A220 I5 D1 H5 P330 T6
Here's my AUTOEXEC.BAT:
rem - By Windows 95 Network - C:\WINDOWS\net start
@echo off
SET MSINPUT=C:\INTPOINT
SET DIRCMD=/ogn
SET DJGPP=C:\TOOLS\DJGPP\DJGPP.ENV
PATH C:\WINDOWS;C:\WINDOWS\COMMAND;C:\INTPOINT\MOUSE;C:\TOOLS;C:\DOS;C:\TOOLS\NETWORK;C:\PROGRA~1\SDD60;C:\TOOLS\DJGPP\BIN
lh C:\WINDOWS\COMMAND\doskey
lh keyb uk,,C:\WINDOWS\COMMAND\keyboard.sys
SET MIDI=SYNTH:1 MAP:E
SET SOUND=C:\PROGRA~1\CREATIVE\CTSND
SET BLASTER=A220 I5 D1 H5 P330 T6
C:\WINDOWS\DosSetup.exe (this is for my PowerVR card, btw)
And here's my CONFIG.SYS:
DOS=HIGH,UMB,AUTO
DEVICE=C:\WINDOWS\HIMEM.SYS
DEVICE=C:\WINDOWS\EMM386.EXE RAM D=64
DEVICEHIGH=C:\DOS\TRICD.SYS
Country=044,,C:\WINDOWS\COMMAND\country.sys
I've also got the output from GCC, but not in text format, it's a PCX
screenshot (zipped to 6K). I don't know if this group would object to a
binary (even a small one) being posted, so I haven't included it here.
Btw, I'm a DJGPP novice, so please reply in laymans terms...
Andrew Gillett
http://www.cs.cf.ac.uk/User/A.R.Gillett/
- Raw text -