<div dir="ltr">I think that, to access C++ code from C, it is necessary to create some wrapper stuff in your C++ lib. <br>For instace, create a wrapper function do_stuff(X *x), something like this:<br><br>class X {<br>public: <br>
int number;<br><br>}<br><br>extern "C" int do_stuff()<br>{<br> X *x = X::getSingleton();<br> return x->number;<br>}<br>To handle a object in the C code, you can use a struct.<br><br>So, maybe, the problem is that in you shared library, it isnt used the extern "C" declaration.<br>
<br>[]s<br><br><div class="gmail_quote">On Fri, Jul 18, 2008 at 7:47 PM, RamaVasu <<a href="mailto:ramavasu@hotmail.com">ramavasu@hotmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>Hi,<br>
<br>
The gstreamer sample gst plugin is failing to use my C++ shared shared library. The compilation , link and install is fine. But when the plugin is invoked with gst-inspect , it is failing with error undefined symbol "___gxx_personality_v0" in the linked shared library. It is because of plug-in is compiled with gcc and shared libary is compiled with gc++. ? What is the right way to fix it ?<br>
<br>
Regards,<br>
vasu.<br><br><hr>Keep your kids safer online with Windows Live Family Safety. <a href="http://www.windowslive.com/family_safety/overview.html?ocid=TXT_TAGLM_WL_family_safety_072008" target="_blank">Help protect your kids.</a></div>
<br>-------------------------------------------------------------------------<br>
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge<br>
Build the coolest Linux based applications with Moblin SDK & win great prizes<br>
Grand prize is a trip for two to an Open Source event anywhere in the world<br>
<a href="http://moblin-contest.org/redirect.php?banner_id=100&url=/" target="_blank">http://moblin-contest.org/redirect.php?banner_id=100&url=/</a><br>_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Danilo Freire<br>
</div>