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: -generate the project with cmake setting "generator" to "Visual Studio 15 2017" and "inheritEnvironments" to "msvc_x86". Then build the dll (libmeteoio.dll). -run setup.py with python3.7_32bit. setuptools automatically finds the correct compiler (Visual Studio 2015) and builds the wrapper (pyd-file)
-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. From: python-win32-requ...@python.org To: python-win32@python.org Date: 11.02.2019 18:02 Subject: python-win32 Digest, Vol 190, Issue 2 Sent by: "python-win32" <python-win32-bounces+theile=slf...@python.org> Send python-win32 mailing list submissions to python-win32@python.org To subscribe or unsubscribe via the World Wide Web, visit https://mail.python.org/mailman/listinfo/python-win32 or, via email, send a message with subject or body 'help' to python-win32-requ...@python.org You can reach the person managing the list at python-win32-ow...@python.org When replying, please edit your Subject line so it is more specific than "Re: Contents of python-win32 digest..." Today's Topics: 1. Re: problem with cython on windows (Nikolai Spahiev) ---------------------------------------------------------------------- Message: 1 Date: Mon, 11 Feb 2019 08:11:26 +0200 (EET) From: Nikolai Spahiev <n...@vintech.bg> Cc: python-win32@python.org Subject: Re: [python-win32] problem with cython on windows Message-ID: <1746366880.8478.1549865486459.javamail.zim...@vintech.bg> Content-Type: text/plain; charset="utf-8" From: "thiemo theile" <thiemo.the...@slf.ch> To: python-win32@python.org Sent: Friday, February 8, 2019 6:49:07 PM Subject: [python-win32] problem with cython on windows I try to write a python wrapper for a c++-library ( [ https://models.slf.ch/p/meteoio/ | https://models.slf.ch/p/meteoio/ ] ) using cython. Everything works fine on linux. Also with python "Microsoft Visual C++ Compiler for Python 2.7" it works fine. The trouble starts with Visual Studio 2017 and python 3.x. The module builds fine. But when running the module I get strange crashes. Some functions form the module are working, some are not. Did someone experience similar problems or has an idea what could be wrong? With C++ mixing compilers is almost impossible. Do you compule *ALL* sources with same compiler? HTH Niki -------------- next part -------------- An HTML attachment was scrubbed... URL: < http://mail.python.org/pipermail/python-win32/attachments/20190211/baa76970/attachment-0001.html > ------------------------------ Subject: Digest Footer _______________________________________________ python-win32 mailing list python-win32@python.org https://mail.python.org/mailman/listinfo/python-win32 ------------------------------ End of python-win32 Digest, Vol 190, Issue 2 ********************************************
_______________________________________________ python-win32 mailing list python-win32@python.org https://mail.python.org/mailman/listinfo/python-win32