www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/06/17/02:58:17

Date: Wed, 17 Jun 1998 09:58:03 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: FaehnTim AT aol DOT com
cc: djgpp AT delorie DOT com
Subject: Re: How/Where new libraries?
In-Reply-To: <98e35d01.35874ab3@aol.com>
Message-ID: <Pine.SUN.3.91.980617095457.18792R@is>
MIME-Version: 1.0

On Wed, 17 Jun 1998 FaehnTim AT aol DOT com wrote:

> gxx -g -o cdtest cdtest.cc -lbcd
> The error is:
> cdtest.cc:1: bcd.h: No such file or directory (ENOENT)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Please pay attention: GCC complains about bcd.h, not about libbcd.a.  
It says it cannot find it.  So the actual question is: where did you put 
bcd.h?

> gxx -g -o cdtest cdtest.cc libbcd.a
> The error is:
> gcc.exe: libbcd.a: No such file or directory (ENOENT)
> cdtest.cc:1: bcd.h: No such file or directory (ENOENT)

The first way (with -lbcd) is the right one, the second one will only work
if libbcd.a is in the current directory.  (I suggest to read the docs of
the compiler and the linker instead of randomly trying some command
lines.)

- Raw text -


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