<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
</head>
<body>
<p>...and a follow-up question:</p>
<p>My current C++ code looks (roughly) like this:</p>
---<br>
#include <sip.h><br>
<br>
extern const sipAPIDef *sipAPI_QtQml;<br>
extern sipClassTypeDef sipTypeDef_QtQml_QQmlApplicationEngine;<br>
<br>
bpl::object get_pyqt_qml_engine(bpl::object &self)<br>
{<br>
auto engine =
sipAPI_QtQml->qpi_convert_from_new_type(get_qml_engin(),<br>
&sipTypeDef_QtQml_QQmlApplicationEngine.ctd_base,<br>
self.ptr())));<br>
return bpl::objec(bpl::handle<>(engine));<br>
}<br>
---<br>
<p>When I compile the above into my extension module and try to load
(import) it into my Python process, I get a missing-symbol error
for `sipTypeDef_QtQml_QQmlApplicationEngine`. Is there anything
else I need to do to get this symbol to be properly resolved ?</p>
<p>(In fact, I notice that the symbol appears to be provided by the
`PyQt.QtQml` module, so I'm importing this prior to importing the
above.</p>
<p>I also tried setting the `os.RTLD_GLOBAL` loader flag, though
that may actually result in ODR violations in other parts of the
application...</p>
<p>Any advice on how to proceed ?<br>
</p>
<p><br>
</p>
<p>Thanks !<br>
</p>
<img moz-do-not-send="false"
src="cid:part1.37B82C44.B26CB1BB@seefeld.name" alt="Stefan"
width="123" height="77"><br>
<div class="moz-signature">
<div class="moz-signature">
<div class="moz-signature">
<pre>--
...ich hab' noch einen Koffer in Berlin...
</pre>
</div>
</div>
</div>
</body>
</html>