Boost C++ Libraries: Ticket #5107: import of boost.python model fails because of undefined symbol, but symbol does not appear in my source tree https://svn.boost.org/trac10/ticket/5107 <p> I have successfully mapped two classes and a free standing function. The source code compiles and links. </p> <p> Upon import into python I get: Python 2.6.6 (<a class="source" href="https://svn.boost.org/trac10/log/?revs=266-84292">r266:84292</a>, Sep 15 2010, 16:22:56) [GCC 4.4.5] on linux2 Type "help", "copyright", "credits" or "license" for more information. </p> <blockquote class="citation"> <blockquote class="citation"> <blockquote class="citation"> <p> import scidblibpy </p> </blockquote> </blockquote> </blockquote> <p> Traceback (most recent call last): </p> <blockquote> <p> File "&lt;stdin&gt;", line 1, in &lt;module&gt; </p> </blockquote> <p> <a class="missing wiki">ImportError</a>: ./scidblibpy.so: undefined symbol: _ZNK6common11StreamArray7getNameEv </p> <p> The undefined symbol is not a valid symbol within my source tree. It appears to be a concatenated string of some sort. This could be a compiler or linker bug that generates a random symbol, or a problem in the generated boost.python code. Some of the items composing the symbol name are part of my source tree. They are common and <a class="missing wiki">StreamArray</a>. The source code being mapped is part of an exposed API. As a standalone API it had no problem in linking and running. </p> <p> How can I review the generated code to determine if it is creating the symbol? </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/5107 Trac 1.4.3 Mike Fabbri <michael_fabbri@…> Sat, 22 Jan 2011 02:45:02 GMT summary changed https://svn.boost.org/trac10/ticket/5107#comment:1 https://svn.boost.org/trac10/ticket/5107#comment:1 <ul> <li><strong>summary</strong> <span class="trac-field-old">import of boost.python model fails because of undefined system, but symbol does not appear in my source tree</span> → <span class="trac-field-new">import of boost.python model fails because of undefined symbol, but symbol does not appear in my source tree</span> </li> </ul> Ticket Marshall Clow Sat, 22 Jan 2011 04:18:48 GMT <link>https://svn.boost.org/trac10/ticket/5107#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5107#comment:2</guid> <description> <pre class="wiki">$ c++filt -n _ZNK6common11StreamArray7getNameEv common::StreamArray::getName() const </pre><p> Do you have a symbol named "common::StreamArray::getName() const" ? </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Sat, 22 Jan 2011 19:27:12 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/5107#comment:3 https://svn.boost.org/trac10/ticket/5107#comment:3 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">invalid</span> </li> </ul> <p> Yes, that symbol appears in my source. I will work to make the linking work correctly. Thank you </p> Ticket