www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/09/04/03:15:31

From: "Vadim Pokotilov" <vpoko AT earthlink DOT net>
Newsgroups: comp.os.msdos.djgpp
Subject: Libraries
Date: Fri, 4 Sep 1998 02:10:04 -0400
Organization: EarthLink Network, Inc.
Lines: 16
Message-ID: <6so094$m0d$1@birch.prod.itd.earthlink.net>
NNTP-Posting-Host: 1cust30.tnt7.bos2.da.uu.net
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

When I get a lot of libraries in a source-only distribution and then compile
them they end up having a .a extention (which isn't the problem). For
example, the allegro library is liballeg.a

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. I have to
edit the makefille and change "-lalleg" to "liballeg.a" so it looks like
"gcc file.c -o file.exe liballeg.o". THEN it compiles correctly
(sometimes... sometimes it says "incorrect spacing in makefile" or something
to that extent)

Any ideas?


- Raw text -


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