Date: Wed, 17 Jun 1998 13:16:07 +0300 (IDT) From: Eli Zaretskii 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: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk 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.