<div dir="ltr"><div dir="ltr"><div>Bonjour,</div><div><br></div><div><span class="gmail-tlid-translation gmail-translation" lang="en"><span title="">I'm trying to make the example "A More Complex C++ Example" given in the documentation.</span> <span title="">But I'm having trouble with the setDefault function.</span></span><br><span class="gmail-tlid-translation gmail-translation" lang="en"></span><div class="gmail-result-shield-container gmail-tlid-copy-target" tabindex="0"><span class="gmail-tlid-translation gmail-translation" lang="en"><br><span title="">Once the sources generated with the sip command, when I compile, the compiler says:</span><br><br><span title="">./siphellocmodule.cpp:438:13: error: "setDefault" was not declared in this scope.</span><br>              <span title="">setDefault</span> <span title="">(*</span> <span title="">a0)</span><span title="">;</span><br><br><span title="">Indeed, the siphellocmodule.cpp file refers to the setDefault function but does not include hello.h</span><br><br><span title="" class="gmail-">Do you have an idea of where the problem is?</span><br><br><span title="">Please, note :<br></span></span></div><div class="gmail-result-shield-container gmail-tlid-copy-target" tabindex="0"><span class="gmail-tlid-translation gmail-translation" lang="en"><span title="">I am using PyQt5 5.12.1 and SIP 4.19.5.</span><br><span title="">My project consists of hello.h, hello.cpp and hello.sip files</span><br><span title="" class="gmail-">My sip command is "sip -t WS_X11 -I /usr/share/sip/PyQt5 -c.hello.sip"</span></span></div><div class="gmail-result-shield-container gmail-tlid-copy-target" tabindex="0"><span class="gmail-tlid-translation gmail-translation" lang="en"><span title="" class="gmail-">It generates the following files:</span><br><span title="" class="gmail-"><br></span></span></div><div class="gmail-result-shield-container gmail-tlid-copy-target" tabindex="0"><span class="gmail-tlid-translation gmail-translation" lang="en"><span title="" class="gmail-">    sipAPIhello.h</span><br><span title="" class="gmail-">    siphelloHello.cpp</span><br><span title="" class="gmail-">    siphellocmodule.cpp</span><br><br><span title="" class="gmail-">And commenting the setDefault function build the project correctly.</span><br><br><span title="">Thanks you.</span></span></div><div class="gmail-result-shield-container gmail-tlid-copy-target" tabindex="0"><span class="gmail-tlid-translation gmail-translation" lang="en"><span title="">Sincerely<br></span></span></div></div><br></div></div>