<html><body><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt; color: #000000"><hr id="zwchr" data-marker="__DIVIDER__"><div data-marker="__HEADERS__"><b>From: </b>"thiemo theile" <thiemo.theile@slf.ch></div><div><br></div><div data-marker="__QUOTED_TEXT__"><span data-mce-style="font-family: sans-serif; font-size: small;" style="font-family: sans-serif; font-size: small;" size="2" face="sans-serif">Yes, I compiled all the sources with the
same compiler. At least every source code which is part of the meteoio-library.
What do you mean by "ALL sources"? Here is what I do:</span>
<br><span data-mce-style="font-family: sans-serif; font-size: small;" style="font-family: sans-serif; font-size: small;" size="2" face="sans-serif">-generate the project with cmake setting
"generator" to "Visual Studio 15 2017" and "inheritEnvironments"
to "msvc_x86". Then build the dll (libmeteoio.dll).</span>
<br><span data-mce-style="font-family: sans-serif; font-size: small;" style="font-family: sans-serif; font-size: small;" size="2" face="sans-serif">-run setup.py with python3.7_32bit.
setuptools automatically finds the correct compiler (Visual Studio 2015)
and builds the wrapper (pyd-file)</span>
<br>
<br><span data-mce-style="font-family: sans-serif; font-size: small;" style="font-family: sans-serif; font-size: small;" size="2" face="sans-serif">-alternatively I can add all the source
files to my setup.py (instead of using the dll). the wrapper also builds
fine. but I get the same crashes when using the wrapper in a python script.
</span>
<br>
<br>
I always add all source files to setup.py because distutils set compiler flags compatible with python runtime DLL. If the C++ project needs specific C++ flags, they can be set in setup.py<br></div><div data-marker="__QUOTED_TEXT__"><br data-mce-bogus="1"></div><div data-marker="__QUOTED_TEXT__">Niki<br data-mce-bogus="1"></div></div></body></html>