fixed #4896 (fails to build with MSVC 2013)#5204
Conversation
fix build error with MSVC 2013 caused by C99 complex support
|
wouldn't it be enough to replace |
|
@juliantaylor I try to use |
|
too bad |
|
@juliantaylor And, VS2013 don't allow initialize a union by a struct, so I using assignment. What means "too bad"? If the code is wrong, please let me know, I will correct it. |
|
the code is fine, I just though vs2013 not support complex numbers in a c99 compatible way is bad |
|
Sorry, in test, I got |
|
with python2 or python3? |
|
I am testing with VS2013 in Windows 8.1, and Python 3.4,2(all is 64bit). I am downloading VS2010 :( |
|
can you run |
|
@juliantaylor It's |
|
thats failing for me too when building numpy with python.org python2 with VS2010, so probably not related to this change, I'm guessing the reason is binary incompatibility. |
|
Python3 + VS2013 64bit build successfully, but cannot pass test. |
|
I am sorry, compile error: But in last commit, I also meet same error. What's wrong? |
|
#5207 should fix the build on msvc |
|
I apply my commit/patch to numpy 1.9.0(download from PyPi), and passed test. |
|
It works for me as well using the maintenance/1.9.x branch. Is it supposed to work with master with #5207 applied too? I might have been doing something wrong, but it failed with an undefined reference to npy_pow. VS2013 64-bit, Python 2.7.7 |
|
Actually, never mind. It works with master too. I must of just temporarily messed something up. |
|
I also got the pow error once and it disappeared when starting over, something may be a little weird on windows |
fixed #4896 (fails to build with MSVC 2013)
fixed #4896 (fails to build with MSVC 2013)
|
pushed as a4e68f4 @robberphex you used master to create this PR, please reset it to the original master to avoid issues when updating. it is usually better to create a new branch for pull requests |

fix build error with MSVC 2013 caused by C99 complex support
I already tested in Win8.1 with VS2013 Express 64bit.
Because I am not sure this patch is correct, please let me know if something is wrong in this patch.
How to build(Win8.1+VS2013)