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

Date: Wed, 17 Jun 1998 13:16:07 +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: Where am I supposed to put bcd.h?
In-Reply-To: <28236d55.3587767b@aol.com>
Message-ID: <Pine.SUN.3.91.980617131256.19673B-100000@is>
MIME-Version: 1.0

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 -


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