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

error: there are no arguments to ‘omp_get_max_threads’ that depend on a template parameter #39

Open
PenghangF opened this issue Aug 12, 2021 · 1 comment

Comments

@PenghangF
Copy link

when I catkin_make , it errors :
/src/ndt_omp/include/pclomp/gicp_omp_impl.hpp:64:70: error: there are no arguments to ‘omp_get_max_threads’ that depend on a template parameter, so a declaration of ‘omp_get_max_threads’ must be available [-fpermissive]
std::vector<std::vector> nn_indices_array(omp_get_max_threads());
^

Can someone help me? Thanks a lot.

@PenghangF
Copy link
Author

I solved the problem by change something blow in CMakeLists.txt:

add_definitions(-std=c++14 -msse -msse2 -msse3 -msse4 -msse4.1 -msse4.2)

set(CMAKE_CXX_FLAGS "-std=c++14 -msse -msse2 -msse3 -msse4 -msse4.1 -msse4.2")

add_definitions(-std=c++11)
set(CMAKE_CXX_FLAGS "-std=c++11 -fopenmp")

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

1 participant