Comments (7)
@robertwb commented
I'm not quite sure I understand--if MS_WINDOWS is defined, then isn't __stdcall defined as well?
from cython.
JimKleckner changed summary from
!__stdcall define wrong for Windows platform
to
__stdcall define wrong for Windows platform
commented
Correct.
That is why the stub for !__stdcall is protected by an
#ifndef MS_WINDOWS
so that it won't blow it away in that case.
The issue is that Python.h doesn't include <windows.h> so that
when the conditions are processed, !__stdcall will not yet
be defined. In that case, we need to protect it with the platform
define.
In the DllMain embedding I'm playing with, I explicitly include
windows.h which then causes it to become defined. Without the
protection of MS_WINDOWS, it has already been made into an empty
string value.
from cython.
JimKleckner commented
I just spent a couple of hours tracking down a linkage problem after updating my tool chain because I forgot about this patch that never got applied.
One can argue that this is major if you are trying to build something on Windoze because linkage fails.
Please either apply the patch or tell my why you won't.
from cython.
JimKleckner commented
Attached is an updated patch that also defines _USE_MATH_DEFINES so that
M_PI and such will get defined as with the standard math.h.
from cython.
@robertwb changed priority from minor
to critical
commented
from cython.
@robertwb changed resolution to fixed
status from new
to closed
commented
Sorry it has taken so long, I don't have Windows to test this on, and no one has stepped up to do the same. (Also, it was marked as "minor" so it slipped under the radar for a while.)
Thank you for the patch, it's in now.
from cython.
@robertwb changed milestone to 0.9.8.1
commented
from cython.
Related Issues (20)
- [BUG] Cannot compile template class with rebinding function
- [ENH] Add back documentation about byte order / endianness documentation HOT 3
- [BUG] numpy types cannot be used for ufunc arguments HOT 1
- [ENH] Support for the nogil branch of Python HOT 5
- Split CYTHON_AVOID_BORROWED_REFS into two levels? HOT 1
- [BUG] Wrong Warning HOT 2
- [BUG] Cannot be executed without any error message. HOT 8
- [ENH] Add cythonrun (and other runnables) to entry points
- [BUG] Building executable with GCC fails HOT 3
- [ERROR] Failing to add third party python libraries to final build HOT 1
- [BUG] removal of old-style buffer special methods breaks pyarrow on py313 HOT 1
- [BUG] Random Segfault HOT 4
- [BUG] Cython master crashes analysing division of int by float HOT 3
- source code string cannot contain null bytes HOT 2
- [BUG] Cannot cythonize C++ source if function isn't explicitly used in a new Python function in the same file
- Coverage measurement of Cython code in a meson build HOT 18
- [BUG] Build dependency that is NOT a runtime compulsory dependency HOT 6
- Handling of Python element access in free-threading Python HOT 4
- [BUG] Possible regression in handling of default function arguments HOT 3
- [BUG] Unknown object types PyComplexObject, incomplete types PyTypeObject, PyLongObject when use -DCYTHON_LIMITED_API HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cython.