<div dir="ltr">Hi,<div><br></div><div>I am struggling to get my multiple C++ classes (each in their own .sip file) to build for the same module. The documentation is not helping me enough yet.</div><div><br></div><div>Currently I am testing with 2 classes: Entity and NamedEntity</div>
<div> Entity.sip and NamedEntity.sip's first line of code = "%Module emsim"</div><div>When I try build it with my setup.py script, the following error appears:</div><div>"</div><div><div>D:\Ex Mente\Software\ExMente.Sim 4 Prototypes\EMSIM4\EMSIM4Py>python setup.py install</div>
<div>running install</div><div>running build</div><div>running build_ext</div><div>building 'emsim' extension</div><div>C:\Python33\sip.exe -c build\temp.win32-3.3\Release -b build\temp.win32-3.3\Release\Entity.sbf -I C:\Python33\sip "D:\... ...\Entity.sip"</div>
<div>C:\Python33\sip.exe -c build\temp.win32-3.3\Release -b build\temp.win32-3.3\Release\NamedEntity.sbf -I C:\Python33\sip "D:\\... ...\NamedEntity.sip"</div><div>sip: Entity.sip:2: Module is already defined</div>
<div>error: command 'C:\Python33\sip.exe' failed with exit status 1</div></div><div>"</div><div><br></div><div>When I remove the %Module line in NamedEntity, I receive an error that there is no %Module defined for the class. When I make NamedEntity's %Module line a %ConsolidateModule, I received the same "Module is already defined' error as described above.</div>
<div><br></div><div>I am sure I am missing something or understanding the Module / ConsolidateModule concept wrong.</div><div><div><br></div>-- <br><span style="color:rgb(51,51,51);font-family:verdana,geneva,lucida,'lucida grande',arial,helvetica,sans-serif;font-size:14.44444465637207px;background-color:rgb(255,255,255)">Christoff Kok</span><br style="color:rgb(51,51,51);font-family:verdana,geneva,lucida,'lucida grande',arial,helvetica,sans-serif;font-size:14.44444465637207px;background-color:rgb(255,255,255)">
<span style="color:rgb(51,51,51);font-family:verdana,geneva,lucida,'lucida grande',arial,helvetica,sans-serif;font-size:14.44444465637207px;background-color:rgb(255,255,255)">Software Engineer</span><br style="color:rgb(51,51,51);font-family:verdana,geneva,lucida,'lucida grande',arial,helvetica,sans-serif;font-size:14.44444465637207px;background-color:rgb(255,255,255)">
<span style="color:rgb(51,51,51);font-family:verdana,geneva,lucida,'lucida grande',arial,helvetica,sans-serif;font-size:14.44444465637207px;background-color:rgb(255,255,255)">Ex Mente</span><br style="color:rgb(51,51,51);font-family:verdana,geneva,lucida,'lucida grande',arial,helvetica,sans-serif;font-size:14.44444465637207px;background-color:rgb(255,255,255)">
<br style="color:rgb(51,51,51);font-family:verdana,geneva,lucida,'lucida grande',arial,helvetica,sans-serif;font-size:14.44444465637207px;background-color:rgb(255,255,255)"><a href="http://www.ex-mente.co.za/" style="color:rgb(0,0,0);text-decoration:none;outline:none;font-family:verdana,geneva,lucida,'lucida grande',arial,helvetica,sans-serif;font-size:14.44444465637207px;background-color:rgb(255,255,255)" target="_blank">http://www.ex-mente.co.za</a><br style="color:rgb(51,51,51);font-family:verdana,geneva,lucida,'lucida grande',arial,helvetica,sans-serif;font-size:14.44444465637207px;background-color:rgb(255,255,255)">
<a href="mailto:christoff.kok@ex-mente.co.za" style="color:rgb(0,0,0);text-decoration:none;outline:none;font-family:verdana,geneva,lucida,'lucida grande',arial,helvetica,sans-serif;font-size:14.44444465637207px;background-color:rgb(255,255,255)" target="_blank">christoff.kok@ex-mente.co.za</a><span style="color:rgb(51,51,51);font-family:verdana,geneva,lucida,'lucida grande',arial,helvetica,sans-serif;font-size:14.44444465637207px;background-color:rgb(255,255,255)"> </span><br style="color:rgb(51,51,51);font-family:verdana,geneva,lucida,'lucida grande',arial,helvetica,sans-serif;font-size:14.44444465637207px;background-color:rgb(255,255,255)">
<span style="color:rgb(51,51,51);font-family:verdana,geneva,lucida,'lucida grande',arial,helvetica,sans-serif;font-size:14.44444465637207px;background-color:rgb(255,255,255)">PO Box 10214 </span><br style="color:rgb(51,51,51);font-family:verdana,geneva,lucida,'lucida grande',arial,helvetica,sans-serif;font-size:14.44444465637207px;background-color:rgb(255,255,255)">
<span style="color:rgb(51,51,51);font-family:verdana,geneva,lucida,'lucida grande',arial,helvetica,sans-serif;font-size:14.44444465637207px;background-color:rgb(255,255,255)">Centurion </span><br style="color:rgb(51,51,51);font-family:verdana,geneva,lucida,'lucida grande',arial,helvetica,sans-serif;font-size:14.44444465637207px;background-color:rgb(255,255,255)">
<span style="color:rgb(51,51,51);font-family:verdana,geneva,lucida,'lucida grande',arial,helvetica,sans-serif;font-size:14.44444465637207px;background-color:rgb(255,255,255)">0046 </span><br style="color:rgb(51,51,51);font-family:verdana,geneva,lucida,'lucida grande',arial,helvetica,sans-serif;font-size:14.44444465637207px;background-color:rgb(255,255,255)">
<span style="color:rgb(51,51,51);font-family:verdana,geneva,lucida,'lucida grande',arial,helvetica,sans-serif;font-size:14.44444465637207px;background-color:rgb(255,255,255)">South Africa </span><br style="color:rgb(51,51,51);font-family:verdana,geneva,lucida,'lucida grande',arial,helvetica,sans-serif;font-size:14.44444465637207px;background-color:rgb(255,255,255)">
<span style="color:rgb(51,51,51);font-family:verdana,geneva,lucida,'lucida grande',arial,helvetica,sans-serif;font-size:14.44444465637207px;background-color:rgb(255,255,255)">tel: +27 12 743 6993 </span><br style="color:rgb(51,51,51);font-family:verdana,geneva,lucida,'lucida grande',arial,helvetica,sans-serif;font-size:14.44444465637207px;background-color:rgb(255,255,255)">
<span style="color:rgb(51,51,51);font-family:verdana,geneva,lucida,'lucida grande',arial,helvetica,sans-serif;font-size:14.44444465637207px;background-color:rgb(255,255,255)">tel: +27 12 654 8198</span><br style="color:rgb(51,51,51);font-family:verdana,geneva,lucida,'lucida grande',arial,helvetica,sans-serif;font-size:14.44444465637207px;background-color:rgb(255,255,255)">
<span style="color:rgb(51,51,51);font-family:verdana,geneva,lucida,'lucida grande',arial,helvetica,sans-serif;font-size:14.44444465637207px;background-color:rgb(255,255,255)">fax: +27 85 150 1341</span>

</div></div>