[PyQt] Support for std::?

Phil Thompson phil at riverbankcomputing.com
Tue Jan 10 13:54:02 GMT 2017


> On 10 Jan 2017, at 1:41 pm, Shaheed Haque <srhaque at theiet.org> wrote:
> 
> For the implementation, that make sense. What about the syntax errors
> the SIP compiler reports, for example:
> 
> ERROR: sip: std::exception has not been defined while processing
> tmp/AkonadiAgentBase/AkonadiAgentBasemod.sip
> 
> Is there a way to suppress those?

Why is that a syntax error? It's complaining about the lack of a definition or the type.

Phil

> On 10 January 2017 at 10:00, Phil Thompson <phil at riverbankcomputing.com> wrote:
>> On 10 Jan 2017, at 9:44 am, Shaheed Haque <srhaque at theiet.org> wrote:
>>> 
>>> Hi,
>>> 
>>> I have some .h files for which the generated .sip contains fragments
>>> which depend on the std namespace like this:
>>> 
>>> tmp/AkonadiCore/Exception.sip:    class Exception: std::exception
>>> tmp/gpgme++/exception.sip:        const std::string &message() const;
>>> tmp/gpgme++/error.sip:    std::ostream &operator<<(int &os, const
>>> GpgME::Error &err);
>>> 
>>> How might I approach these? Ideas welcome...
>> 
>> You have to provide %MappedType implementations of them.
>> 
>> Phil
> 



More information about the PyQt mailing list