undefined symbol: sipExportedExceptions_limacore

Laurent Claustre claustre at esrf.fr
Fri Nov 28 16:07:58 GMT 2025


Hello,

porting our C++ project python binding  from sip 4.19 to 6.14 we got the 
following error when importing the project module:

/undefined symbol: sipExportedExceptions_limacore/

Looking into the generated sipAPI project file (sipAPIlimacore.h) 
sipExportedExceptions_limacore is declared as "external":

//* The exceptions defined in this module. */
extern PyObject *sipExportedExceptions_limacore[];/

But none of the .h/.cpp generated file contains its declaration. We have 
a Exceptions.sip file which looks like:

/enum Layer {
     Common, Control, Hardware, CameraPlugin,
};

enum ErrorType {
     InvalidValue, NotSupported, Error,
};


%Exception Exception(SIP_Exception)
{
%TypeHeaderCode
#include "lima/Exceptions.h"
using namespace lima;
%End
%RaiseCode
     const std::string& tmpString = sipExceptionRef.getErrMsg();
     const char *detail = tmpString.c_str();
     PyErr_SetString(sipException_Exception, detail);
%End
};
/

Thanks for your help

Laurent

-- 
Laurent Claustre

Beamline Control Unit
Instrumentation Services and Development Division
ESRF - The European Synchrotron
71, avenue des Martyrs
38000 Grenoble, FRANCE
Tel.: +33 (0)4.76.88.29.12
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20251128/7702c084/attachment.htm>


More information about the PyQt mailing list