* [EMAIL PROTECTED] wrote on Sun, Apr 13, 2008 at 03:20:17PM CEST:
> 
> I am compiling a package and i run the configure script. i Get the
> following error:

> configure:3995: checking for ID3Tag_New in -lid3
> configure:4030: gcc -o conftest -g -O2    conftest.c -lid3   -
> lvorbisfile  -lvorbis -lm >&5
> /usr/local/lib/libid3.so: undefined reference to
> `std::basic_string<char, std::char_traits<char>, std::allocator<char>
> >::copy(char*, unsigned int, unsigned int) const'

> I googled it. Seems an error related to libstdc++.

It seems the configure script tries to link against a C++ library with
the C compiler.  Tests in configure.ac that need C++ should be wrapped
in
  AC_LANG_PUSH([C++])
  ...
  AC_LANG_POP([C++])

Cheers,
Ralf


Reply via email to