Re: [Error] No %Module has been specified for module defined in

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Re: [Error] No %Module has been specified for module defined in

Phil Thompson-5
On 6 Dec 2017, at 7:55 am, tuanakka <[hidden email]> wrote:

>
> I want to use SIP to wrap a library. But when compile has error like title.
>
> file PyIpcMessage.sip
>
>
> class IpcMessage
> {
> %TypeHeaderCode
> #include "IpcMessage.pb.h"
> using namespace viettel::messages;
> %End
>
> public:
> IpcMessage();
>
> bool has_msg_id() const;
> void clear_msg_id();
> int msg_id() const;
> void set_msg_id(int value);
> };
>
>
> file pygateway.sip
>
> %Module (name=pygateway)
>
> #Include PyIpcMessage.sip
>
> when i run: sip -c . pygateway.sip
> It generates error: sip: No %Module has been specified for module defined in
> PyIpcMessage.sip
>
> Can you help me?

Works fine for me - once you fix the syntax error.

Phil
_______________________________________________
PyQt mailing list    [hidden email]
https://www.riverbankcomputing.com/mailman/listinfo/pyqt