From: "Tony O'Bryan" Newsgroups: comp.os.msdos.djgpp Subject: Re: compiling allegrp progs Date: Mon, 05 Jan 1998 14:44:48 -0600 Organization: Southwest Missouri State University Lines: 25 Message-ID: <34B14640.E3C@nic.smsu.edu> References: Reply-To: aho450s AT nic DOT smsu DOT edu NNTP-Posting-Host: clark.a15.smsu.edu Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Juuso Santeri Vilmunen wrote: > > I tried to make program with Allegro and compiled in command prompt. > > i use -lalleg switch and got error that "-lalleg no such file in > directory" ... what's the problem... > > thnks ,,, Did you run make from the Allegro base directory? This compiles Allegro and places the library in %DJDIR%/allegro/lib/djgpp. I don't remember if the make file automatically copies it to %DJDIR%/lib, but that's where liballeg.a needs to be for gcc to find it by using the -l switch. If it's not there, copy liballeg.a from %DJDIR%/allegro/lib/djgpp to %DJDIR%/lib. For example, assuming you installed the compiler under /djgpp and installed Allegro under /djgpp/allegro: copy /djgpp/allegro/lib/djgpp/liballeg.a /djgpp/lib Then you should be able to link in Allegro with gcc's -l switch like you've mentioned above. -- Tony O'Bryan http://www.geocities.com/SiliconValley/Park/7201