delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/01/05/16:03:16

From: "Tony O'Bryan" <aho450s AT nic DOT smsu DOT edu>
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: <Pine DOT SGI DOT 3 DOT 96 DOT 980105190655 DOT 13819A-100000 AT torstai DOT hit DOT fi>
Reply-To: aho450s AT nic DOT smsu DOT edu
NNTP-Posting-Host: clark.a15.smsu.edu
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019