Mail Archives: djgpp/1998/06/17/02:58:17
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 -