Date: Wed, 17 Jun 1998 09:58:03 +0300 (IDT) From: Eli Zaretskii To: FaehnTim AT aol DOT com cc: djgpp AT delorie DOT com Subject: Re: How/Where new libraries? In-Reply-To: <98e35d01.35874ab3@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: > 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.)