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

From: FaehnTim AT aol DOT com
Message-ID: <98e35d01.35874ab3@aol.com>
Date: Wed, 17 Jun 1998 00:48:48 EDT
To: djgpp AT delorie DOT com
Mime-Version: 1.0
Subject: How/Where new libraries?

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

- Raw text -


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