-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compile errors with latest MS Build Tools in Windows #61
Comments
Hi @obbrc Thanks for the investigation. Regarding restrict: #ifdef _MSC_VER
#define restrict __restrict
#endif Regarding Let's have a PR with the Windows fixes? |
yeah, obviously your restrict solution is more elegant :) reinterpret_cast gave below compile error.
|
The second error should be fixed by #ifdef WIN32
#define PyLong_AsLong64(i) PyLong_AsLongLong(i)
#else
#define PyLong_AsLong64(i) PyLong_AsLong(i)
#endif and replacing |
I was wondering if this fix was checked in or was going to be checked in. I tried manually compiling on windows but get this after compiling: I have it running on linux without issue (very awesome) but would like to get on windows as well. I have very little C experience so I imagine this is and issue on my side. What I did to get to error above:
Build tools: VS 2019 |
Doing this did not work for me, but changing the code as in point 2 of the original post worked. |
@arthuranderson14 for me, the issue was due to |
Please PR the fix somebody, I am not using Windows so cannot test myself. |
Fixes applied based on discussions here: src-d#61 mkleehammer/pyodbc#663
Fixes applied based on discussions here: src-d#61 mkleehammer/pyodbc#663 Signed-off-by: Scott <13770321+scott-8@users.noreply.github.com>
The current pip installation gives several errors for windows 10 with latest MS Build Tools. This is because in VC 2015+, Universal CRT is updated, and looks like WMD code supports VC 2014. A quick glance at the files suggests the master also have the same issues. Below is how I made it work. Not sure if the solution is correct or not, but wanted to share.
With these changes WMD-Relax compiles, and gives the same results as Linux version.
The text was updated successfully, but these errors were encountered: