[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
compiling libg++/libg++
- To: tech_(_at_)_openbsd_(_dot_)_org
- Subject: compiling libg++/libg++
- From: Albert Chin-A-Young <china_(_at_)_lystra_(_dot_)_org>
- Date: Sun, 3 May 1998 23:15:05 -0500
- Delivery-date: Sun May 3 21:31:49 1998
src/gnu/lib/libg++/libstdc++/stdexcept,
src/gnu/lib/libg++/libg++/src/AllocRing.cc fail to compile because
'#include <exception>' and '#include <new.h>' cannot be found. I have
DESTDIR set and, as an example, the build line for AllocRing.cc is:
g++ -O -fno-implicit-templates -I. \
-I/src/openbsd-current/src/gnu/lib/libg++/libg++/src \
-I/src/openbsd-current/src/gnu/lib/libg++/libg++/../libio \
-I/src/openbsd-current/src/gnu/lib/libg++/libg++/../libstdc++ \
-I/src/openbsd-current/src/gnu/lib/libg++/libg++/../libio -nostdinc \
-idirafter /src/openbsd-current/root/usr/include \
-c /src/openbsd-current/src/gnu/lib/libg++/libg++/src/AllocRing.cc -o
The problem is that <exception> and <new.h> are in
/src/openbsd-current/root/usr/include/g++. My temporary solution was to
add '-idirafter ${DESTDIR}/usr/include/g++' to the CPPFLAGS line in
/usr/share/mk/bsd.sys.mk (same line that added the original
'-idirafter ...').
FYI, this is being compiled under OpenBSD 2.2/pmax.
--
albert chin (china_(_at_)_lystra_(_dot_)_org) NeXTMail accepted
Visit your host, monkey.org