From: "John M. Aldrich" Newsgroups: comp.os.msdos.djgpp Subject: Re: Allegro 2.1 Make??? Date: Thu, 21 Nov 1996 20:49:53 -0800 Organization: Three pounds of chaos and a pinch of salt Lines: 40 Message-ID: <329530F1.4408@cs.com> References: Reply-To: fighteer AT cs DOT com NNTP-Posting-Host: ppp211.cs.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: Tandgnjost To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Tandgnjost wrote: > > While trying to make, using make, allegro this little error message lights my > day.. > > gcc -s -o demo/demo.exe obj/demo.o liballeg.a > C:\djgpp\bin/ld.exe: cannot open crt0.o: No such file or directory(EOENT) > make.exe: ***[demo/demo.exe] Error 1 It's not a path problem; it's an incorrect environment setup. You must set the DJGPP environment variable in your AUTOEXEC.BAT like so: set DJGPP=C:/djgpp/djgpp.env The file 'djgpp.env' contains the environment settings for DJGPP programs, and the "DJGPP" variable must point to it for these programs to work. This information is all contained in 'readme.1st', which it looks like you didn't read entirely. Also, please download the DJGPP Frequently Asked Questions list (v2/faq202b.zip) - this exact problem is answered in section 8.1. There is also a bug in the allegro 2.1 source code that causes it to fail compilation under DJGPP v2.01. You need to change two lines in the file "bank.S" that use incorrect operator-operand size suffixes. I don't recall the exact fix, but a search of the mailing list archives at http://www.delorie.com/djgpp/mail-archives/ for "allegro" should turn up the answer. Good luck! -- John M. Aldrich, aka Fighteer I -----BEGIN GEEK CODE BLOCK----- Version: 3.1 GCS d- s+:- a-->? c++>$ U@>++$ p>+ L>++ E>+ W++ N++ o+ K? w(---) O- M-- V? PS+ PE Y+ PGP- t+(-) 5- X- R+ tv+() b+++ DI++ D++ G e(*)>++++ h!() !r !y+() ------END GEEK CODE BLOCK------