-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
PCL not recognizing C++14 #3562
Comments
Sorry, I completely buggered up the formatting. first time submitting an issue |
No problem, I've fixed the formatting. Something weird is going on. Please post the output of |
Cloned from Github then installed through Cmake and make. |
I can also try on my Ubuntu machine to see if that produces a different result |
The problem is that the compiler is called without set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON) to just below the |
As with all coding, the best solution is the simplest. Works fine, much obliged. |
The tutorial should work without these lines though. So seems like there is a problem on our side. We do not set Lines 646 to 652 in 655d8b0
-std=c++14 flag automatically. This branch was added in #3341. @traversaro was there any particular reason why you skipped setting that property?
|
I cannot remember or find any specific reason, I think it was just an error on my side because I initially developed the patch for PCL 1.9 (that did not propagated the |
Thanks for the quick response. Yes, a patch would very welcome! |
Your Environment
Context
Trying to follow the introductory documentation by compiling the simple pcd_write.cpp example document. Have already installed pcl successfully (I believe)
Expected Behavior
Should compile with no errors
Current Behavior
error PCL requires C++14 or above
fatal error: too many errors emitted, stopping now [-ferror-limit=]
Code to Reproduce
CPP File:
cmakelists:
make file:
The text was updated successfully, but these errors were encountered: