Re: Problem while running configure

Ralf Wildenhues <[email protected]>
Newsgroups gmane.comp.gnu.utils
Organization Department of Numerical Simulation, University of Bonn
Message-ID <[email protected]>
* [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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.