Skip to content
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

[VS2015] Compile error C2782: 'ssize_t' in PyImathFixedMatrix #359

Closed
JenusL opened this issue Nov 13, 2018 · 2 comments
Closed

[VS2015] Compile error C2782: 'ssize_t' in PyImathFixedMatrix #359

JenusL opened this issue Nov 13, 2018 · 2 comments
Labels
Bug A bug in the source code

Comments

@JenusL
Copy link
Contributor

JenusL commented Nov 13, 2018

I'm building OpenEXR with Python 3.6 bindings on Windows with Boost 1.66 and MSVC 14 (VS2015).
I got the following compile error:
openexr\pyilmbase\pyimath\PyImathFixedMatrix.h(144): error C2872: 'ssize_t': ambiguous symbol

As far as I can tell that is the only use of ssize_t in the whole project. I changed it to Py_ssize_t to get it to compile but I don't know if that is the proper solution.

@meshula
Copy link
Contributor

meshula commented Nov 18, 2018

Good catch. Not only should Py_ssize_t be used, but convert_index should be fixed to take and return a Py_ssize_t instead of an it.

@cary-ilm cary-ilm added Build A problem with building or installing the library. Windows labels Jun 13, 2019
@cary-ilm cary-ilm added Bug A bug in the source code Needs Discussion To be discussed in the technical steering committee labels Jun 26, 2019
@cary-ilm
Copy link
Member

Fixed in #415

@cary-ilm cary-ilm removed Build A problem with building or installing the library. Needs Discussion To be discussed in the technical steering committee Windows labels Jun 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug A bug in the source code
Projects
None yet
Development

No branches or pull requests

3 participants