[gst-devel] Support for C++ ?
David I. Lehn
dlehn at vt.edu
Wed Jul 24 22:29:01 CEST 2002
* Praveen K. Bhaskar <Praveen.Kumar.Bhaskar at nsc.com> [20020725 01:07]:
> Does G Streamer framework support C++. ?
> I wrote a gstreamer plugin in C++ but when I try to register it using
> gst-register , I get an error saying : Unresolved symbol
> gst_props_new_FCce.
> Kindly let me know if anyone has encountered this problem , and a
> solution to this.
C++ is a flawed and lame language and does symbol mangling. You need to
let the compiler know you're trying to use C functions. This is
probably fixed in newer releases but you can add the following glib hack
around gstreamer includes in your code:
G_BEGIN_DECLS
#include <gst/gst.h>
...
G_END_DECLS
> ( I am using gstremer-0.3.3 )
>
You should upgrade to the recently released 0.4.0.
-dave
More information about the gstreamer-devel
mailing list