From: "Matthew Smith" Newsgroups: comp.os.msdos.djgpp Subject: Re: sincos function error when compiling allegro 3.938 Date: Mon, 1 Oct 2001 21:12:57 +0100 Lines: 71 Message-ID: <9pai65$6j4$1@news6.svr.pol.co.uk> References: <1001852389 DOT 603990 AT remus DOT infonie DOT fr> <3BB72D62 DOT 26FAE60C AT is DOT elta DOT co DOT il> <1001957413 DOT 611487 AT remus DOT infonie DOT fr> NNTP-Posting-Host: modem-154.abra.dialup.pol.co.uk X-Trace: news6.svr.pol.co.uk 1001966597 6756 217.135.1.154 (1 Oct 2001 20:03:17 GMT) NNTP-Posting-Date: 1 Oct 2001 20:03:17 GMT X-Complaints-To: abuse AT theplanet DOT net X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MIMEOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Aha, you mentioned MinGW32 I didn't want to suggest this until you mentioned it, in case I added confusion. Remember DJGPP and MinGW32 are both versions of GCC. You should not have both /DJGPP/BIN and /MINGW32/BIN on the path at the same time, and you should not have the DJGPP and DJDIR variables set when using MING, etc. or some configure scripts get confused. My guess is that your DJGPP program is being linked by the MinGW32 ld program with the MinGW32 libc You need to make a pair of .BAT files which set the environment for using DJGPP or MINGW32 e.g. GODJGPP.BAT set MINGDIR= set DJDIR=/where/you/keep/djgpp set DJGPP=/where/you/keep/djgpp/djgpp.env set PATH=c:\where\you\keep\djgpp\bin;c:\windows\;c:\windows\command GOMING.BAT set MINGDIR=/wheresmyming/ set DJDIR= set DJGPP= set PATH=c:\wheresmyming\bin;c:\windows\;c:\windows\command They look roughly right Matt "Patator" wrote in message news:1001957413 DOT 611487 AT remus DOT infonie DOT fr... > | If the problem is that you cannot link the program, perhaps you have an > old > | version of the DJGPP library. > > I've download latest version of djdev*b.zip, and all examples compiled well > ! But many examples crash (general protection fault, reboot, or program > closed by windows98 with an error message) when I launch them, but others > not (allegro setup) It is a celeron 400/128Mo. I've installed exactly the > same allegro&djgpp on another machine (p200+ 32Mo win98) , and there's no > problem ! Strange ! > > But i find compiling a windows version of allegro examples&demo is too > difficult, I get many errors. It is said msvc is not needed if i have > precompiled dlls (i have them), but installation procedure asks for msvc > path. > I think i'll go back to MinGW32 (since allegro now seems to work with this > compiler, with no need of external utilities like msvc, rsxntdj). > > [ P a t a t o r ] --- http://www.cyberdivad.com > >