delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/01/08/04:20:59

From: "John M. Aldrich" <fighteer AT cs DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Linking problem
Date: Tue, 07 Jan 1997 22:11:39 -0800
Organization: Two pounds of chaos and a pinch of salt
Lines: 18
Message-ID: <32D33A9B.76A4@cs.com>
References: <5av2qk$apa AT news DOT cloud9 DOT net>
Reply-To: fighteer AT cs DOT com
NNTP-Posting-Host: ppp108.cs.com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Noah Levenson wrote:
> 
> but it gives me a "-lliballeg: no such file" error!  If I do the
> following:
> 
> gcc -O -o ex15.exe ex15.c c:\djgpp\lib\liballeg.a
> 
> it works fine.  Why can't I use the -l linking switch?  Thanks.

The proper format for the -l switch is '-l[lib]lib[.a]'.  So, liballeg.a
would become '-lalleg'.  ld automatically fills in the rest for you.

-- 
---------------------------------------------------------------------
| John M. Aldrich, aka Fighteer I  |        fighteer AT cs DOT com         |
| Plan:  To find ANYONE willing to |   http://www.cs.com/fighteer   |
| play Descent 2 on DWANGO!        | Tagline: <this space for rent> |
---------------------------------------------------------------------

- Raw text -


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