[gst-devel] Problems with C++ files

Michael Smith msmith at fluendo.com
Mon Mar 20 03:50:22 CET 2006


On Fri, 2006-03-17 at 11:47 -0600, Vinay Krishnamurthy wrote:
> Hello All,
> 
> I am trying to build a GStreamer plug-in with c++ files.
> If I build with the C version of those files, my plugin is getting
> recognized. However, if I use the C++ version(there is no change in
> the functionality), my plugin is not getting recognized.
> 
> Can you please let me know is there any known problem for GStreamer
> plugins with C++ files.

We have some C++ plugins in gstreamer, so this is certainly fine in
general.

My guess would be that you're not marking the plugin entry point
properly with extern "C" { }, so the plugin loader doesn't recognise it
as a gstreamer plugin. Running with GST_DEBUG=GST_PLUGIN_LOADING:5 will
give you lots of information about plugin loading, it should say why
your plugin failed to load.

Mike






More information about the gstreamer-devel mailing list