[vlc-devel] Re: ___assert undefined while linking audio_output module

Gildas Bazin gbazin at altern.org
Fri Oct 1 01:12:45 CEST 2004


On Friday 01 October 2004 00:15, Frédéric RUGET wrote:
> Hello,
> 
> I have an asio.cpp audio_output module that is linked
> with object files from Steinberg's ASIO SDK (C++ source).
> 
> When creating libasio_plugin_a-asio.o, the linker does
> not find several (C++ related?) symbols :
> ___gxx_personality_sj0, new, delete, ___assert,
> constructor stuff. (see compilation log below).
> 
> Anyone knows the reason for this ?
> 

Could be several things.
First you need to check that the SDK was compiled with the same version of 
gcc (they often break the C++ ABI between versions).
Second, you also need to make sure it was compile in -mno-cygwin mode (ie. 
no cygwin posix emulation layer).

You'll also need to make sure you add VLC_ADD_CXXFLAGS([asio],[]) in 
configure.ac so the build script knows it is dealing with c++ objects 
during linking. And if you don't feel like modifying configure.ac right 
now, you can simply edit vlc-config and edit your plugin section like this:
    asio)
      cxxflags="${cxxflags} "
      linkage="c++"

--
Gildas

-- 
This is the vlc-devel mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://developers.videolan.org/lists.html



More information about the vlc-devel mailing list