www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/09/06/05:30:38

Date: Sun, 6 Sep 1998 12:29:22 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Vadim Pokotilov <vpoko AT earthlink DOT net>
cc: djgpp AT delorie DOT com
Subject: Re: Libraries
In-Reply-To: <6so094$m0d$1@birch.prod.itd.earthlink.net>
Message-ID: <Pine.SUN.3.91.980906122747.20285H-100000@is>
MIME-Version: 1.0

On Fri, 4 Sep 1998, Vadim Pokotilov wrote:

> Most makefiles do something like "gcc file.c -o file.exe -lalleg"
> 
> When I run make it is unable to find the allegro library (which is in the
> same dir as the makefile) and gives me several link-time errors.

You could either install liballeg.a in the DJGPP's lib subdirectory, or 
add the -L. switch to the gcc command line, which will add the current 
directory (note the dot after -L) to the list of directories searched by 
gcc for libraries.

- Raw text -


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