<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>
&nbsp;&nbsp;&nbsp; int number;<br><br>}<br><br>extern &quot;C&quot; int do_stuff()<br>{<br>&nbsp;&nbsp; X *x = X::getSingleton();<br>&nbsp;&nbsp; return x-&gt;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 &quot;C&quot; declaration.<br>
<br>[]s<br><br><div class="gmail_quote">On Fri, Jul 18, 2008 at 7:47 PM, RamaVasu &lt;<a href="mailto:ramavasu@hotmail.com">ramavasu@hotmail.com</a>&gt; 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>
&nbsp;<br>
The gstreamer sample gst plugin is failing to use my C++ shared&nbsp; 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 &quot;___gxx_personality_v0&quot; 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>

&nbsp;<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&#39;s challenge<br>
Build the coolest Linux based applications with Moblin SDK &amp; 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&amp;url=/" target="_blank">http://moblin-contest.org/redirect.php?banner_id=100&amp;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>