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

Compilation error with MSVC compiler #571

Open
chetan-sadhu opened this issue May 17, 2024 · 2 comments
Open

Compilation error with MSVC compiler #571

chetan-sadhu opened this issue May 17, 2024 · 2 comments

Comments

@chetan-sadhu
Copy link

chetan-sadhu commented May 17, 2024

When trying to compile with Microsoft Visual Studio 2017 compiler with USE_OPEN_MP = ON, we get Compiler Error C3016 because OpenMP for loops uses std::size_t as a the datatype for loop index.

As a work around, I edited the datatype to long long instead of size_t which is unsigned long long and I am not sure if this is correct.

@boxanm
Copy link
Collaborator

boxanm commented May 18, 2024

Hi @chetan-sadhu
we currently don't have the resources needed to support Windows OS. However, if you are confident with your workaround, don't hesitate to submit a PR and update the Windows guide accordingly!
Alternatively, you can also build and run libpointmatcher in WSL which should work seamlessly.

@lingerer
Copy link

lingerer commented Dec 2, 2024

You can set /openmp:llvm under vs 2022

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

No branches or pull requests

3 participants