Mail Archives: djgpp/1998/06/17/01:50:44
In which directory do I put a new library?
For example:
I have libbcd.a and I put it into the c:\djgpp\lib directory and compile the
code using (with #include "bcd.h" as line 1):
gxx -g -o cdtest cdtest.cc -lbcd
The error is:
cdtest.cc:1: bcd.h: No such file or directory (ENOENT)
-or- I use:
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)
Is there something else I need to do to make this work? Do I need to put
libbcd.a in a different directory? Do I need a different command line? I'm
not sure what to do.
Thank you,
Tim Faehnle
- Raw text -