From: "jan malina" Newsgroups: comp.os.msdos.djgpp Subject: Re: How/Where new libraries? Date: Thu, 18 Jun 1998 18:21:27 +0200 Organization: EUnet Belgium, Leuven, Belgium Lines: 28 Message-ID: <6mbeub$5mr$1@news3.Belgium.EU.net> References: <98e35d01 DOT 35874ab3 AT aol DOT com> NNTP-Posting-Host: dialup035.gent.eunet.be To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk add SET DJGPP=(djgpp install dir)/DJGPP.ENV to your autoexec.bat (use / instead of \) FaehnTim AT aol DOT com heeft geschreven in bericht <98e35d01 DOT 35874ab3 AT aol DOT com>... >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