Subject: problems compiling C++ libs
To: None <netbsd-users@netbsd.org>
From: Jasper Wallace <jasper@pointless.net>
List: netbsd-users
Date: 02/14/2001 20:17:54
Hi,

I'm trying to get id3lib[1] to compile under 1.5, and it's failing on the
first file with:

/bin/sh ../libtool --mode=compile c++ -DHAVE_CONFIG_H -I. -I. -I.. \
-I../include/id3 -I../include     -g -O2 -Wall -Wno-unused -Wno-inline \
-Woverloaded-virtual -Wmissing-declarations  -c c_wrapper.cpp
mkdir .libs
c++ -DHAVE_CONFIG_H -I. -I. -I.. -I../include/id3 -I../include -g -O2 -Wall \
-Wno-unused -Wno-inline -Woverloaded-virtual -Wmissing-declarations -c \
-fPIC -DPIC c_wrapper.cpp -o .libs/c_wrapper.lo
In file included from /usr/include/g++/alloc.h:21,
                 from /usr/include/g++/std/bastring.h:39,
                 from /usr/include/g++/string:6,
                 from ../include/id3/strings.h:31,
                 from /usr/include/string.h:89,
                 from c_wrapper.cpp:27:
/usr/include/g++/stl_alloc.h:135: template with C linkage
/usr/include/g++/stl_alloc.h:217: template with C linkage
/usr/include/g++/stl_alloc.h:236: template with C linkage
/usr/include/g++/stl_alloc.h:314: template with C linkage


Can this be eaisly fixed? preferably without learning advanced C++ and gnu
toolchain debugging in the process ;-)

It compiles on FreeBSD 4.0, 4.2, and linux.

[1] http://id3lib.sourceforge.net/
-- 
     "The aurochs was the great, black bull that was painted on cave
walls  alongside bison and mammoths  by tacky prehistoric minimalist
artists  who  had no  sense whatsoever of  modeling or perspective."
[see: http://www.aristotle.net/~swarmack/aurochs.html]  [0x2ECA0975]