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

Build error on Windows #477

Open
StephenSmith25 opened this issue Apr 13, 2021 · 3 comments
Open

Build error on Windows #477

StephenSmith25 opened this issue Apr 13, 2021 · 3 comments

Comments

@StephenSmith25
Copy link

StephenSmith25 commented Apr 13, 2021

I'm trying to build on windows but I'm encountering an issue while generating the bindings:

..\bindings\cpp\NeXusFile.cpp(1243): error C2131: expression did not evaluate to a constant

I'm currently building with MSVC 2019. Is there a way around this issue? Variable length arrays have never been supported by MSVC (as they are not strictly part of the c++ standard). I'm currently trying to create a windows conda package for nexus, so locally changing the source isn't an option - I suppose I could create a patch. Just wondering if this is a known issue? Or if I'm doing something wrong.

@FreddieAkeroyd
Copy link
Member

No, it looks like that part has not been compiled on windows - I also noticed that char* char_data is allocated and not freed later on resulting in a memory leak. I will create a fix,

@FreddieAkeroyd
Copy link
Member

Hi @StephenSmith25 it looks like this has already been fixed in f905c6e as part of #474 I am not sure when this PR will be tested and merged, what would be most helpful for you at this time? I could create a separate branch based on 4.4.3 with the above change cherry picked if that would be helpful?

@StephenSmith25
Copy link
Author

Hi Freddie. At the moment I've created my own patch for the issue so that will probably be okay until the PR you linked is merged, so no need for a separate branch. Thanks for looking into this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants