<font size="4">Hi,</font><div><font size="4"><br></font></div><div><font size="4">Running Ubuntu 10.4 and Python 2.6.5. </font></div><div><font size="4"><br></font></div><div><font size="4">Been putzing around with Python for 3-4 years now.</font></div>



<div><font size="4"><br></font></div><div><font size="4">Quite comfortable with the language and I'm just branching</font></div><div><font size="4">out to untried areas...like SIP.</font></div><div><font size="4"><br>



</font></div><div><font size="4">So, I wrote a little C++ class called word and provided a method</font></div><div><font size="4">called reverse which does nothing but "return (static char *)Null".</font></div>


<div>
<font size="4"><br></font></div><div><font size="4">I then ran "gcc -o libword.so -shared word.cpp" to make my little</font></div><div><font size="4">fictional library (as referred to in the text).</font></div>

<div><font size="4"><br></font></div><div><font size="4">I then made the word.sip and configure.py files and ran configure.py.</font></div><div><font size="4">Prior to running make I copied libword.so into /usr/lib so the linker would</font></div>

<div><font size="4">find it.  Running make and 'make install' ran flawless, as did everything</font></div><div><font size="4">until now.</font></div><div><font size="4"><br></font></div><div><font size="4">At this point, if I understand the theory here, I figured I'd start up a</font></div>

<div><font size="4">Python command line session and issue the command "import word" and</font></div><div><font size="4">then try "word.reverse()".  To my surprise I got the following error:</font></div>

<div><font size="4"><br></font></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><font size="4"><div>>>> import word</div></font></div><div><font size="4"><div>Traceback (most recent call last):</div>

</font></div><div><font size="4"><div>  File "<stdin>", line 1, in <module></div></font></div><div><font size="4"><div>ImportError: ./word.so: undefined symbol: _ZNK4Word7reverseEv</div><div><br></div>

</font></div></blockquote><font size="4">I've tried numerous incantations with no luck.  I figured this would work</font><div><font size="4">without my having to go and learn all about PyQT just to get it to run.</font></div>
<div><font size="4">Is that unreasonable ?</font></div><div><font size="4"><br></font></div><div><font size="4">The command "Readelf -s word.so" shows the symbol is listed in the</font></div><div><font size="4">library.</font></div>
<div><font size="4"><br></font></div><div><font size="4">What am I missing here?</font></div><div><font size="4"><br></font></div><div><font size="4">thanks,</font></div><div><font size="4">           Gary ---<br></font><div>
<font size="4"><div><br></div></font><div><br></div>

-- <br><div>------------------------------------------------------------------------------<font color="#000000"><font face="Arial, sans-serif"><font><span style="font-size:10pt"><br>
</span></font></font></font><span style="font-size:10pt"></span></div><div>
        
        
        



        
        
        


<p style="margin-bottom:0.19in"><span style="font-family:Arial,sans-serif">We
fear the thing we want the most.</span><font color="#000000"><font face="Arial, sans-serif"><font> <br>~ Robert Anthony <br></font></font></font><br><br></p></div><font size="3" face="Times New Roman">



</font><br>
</div>
</div>