Mail Archives: djgpp/1997/01/08/04:20:59
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 -