Mail Archives: djgpp/1998/06/17/06:17:44
On Wed, 17 Jun 1998 FaehnTim AT aol DOT com wrote:
> I've tried putting bcd.h in all sorts of places, but I still get undefined
> references to the functions even when it recognizes bcd.h. Where do I put
> bcd.h?
Put bcd.h in the same directory where you compile your source, and add
-I. switch to the compilation command line. This should solve the
problem.
> Do I need to put bcd.c somewhere, too? What about bcd.o?
If bcd.o is inside libbcd.a, then you don't need bcd.o anywhere.
> I think I need to know how to install libraries in general. Do I only need a
> library (such as *.a) in the c:\djgpp\lib directory or do I need the
> *[.h|.c|.o] somewhere, also? If so, where?
If the sources of the application code include a header, GCC must be able
to find that header. The header is not in the library, it must be
accessible as a file at compile time.
- Raw text -