We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
getting error as below
" /brlcad/src/external/Creo/part.cpp:1228:37: error: ‘max’ was not declared in this scope; did you mean ‘std::max’? 1228 | bu_vls_sprintf(&vstr, "%g", max(massprops.volume,0.0)); | ^~~ | std::max In file included from /usr/include/c++/11/algorithm:62, from /home/umeen/brlcad/src/external/Creo/part.cpp:24: /usr/include/c++/11/bits/stl_algo.h:3467:5: note: ‘std::max’ declared here 3467 | max(initializer_list<_Tp> __l, _Compare __comp) | ^~~ make[2]: *** [src/external/Creo/CMakeFiles/creo-brl.dir/build.make:118: src/external/Creo/CMakeFiles/creo-brl.dir/part.cpp.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:44521: src/external/Creo/CMakeFiles/creo-brl.dir/all] Error 2 make: *** [Makefile:166: all] Error 2 "
The text was updated successfully, but these errors were encountered:
Does 0cc7665 address the issue?
Sorry, something went wrong.
#include<bits/stdc++.h> //use this at top of code
No branches or pull requests
getting error as below
"
/brlcad/src/external/Creo/part.cpp:1228:37: error: ‘max’ was not declared in this scope; did you mean ‘std::max’?
1228 | bu_vls_sprintf(&vstr, "%g", max(massprops.volume,0.0));
| ^~~
| std::max
In file included from /usr/include/c++/11/algorithm:62,
from /home/umeen/brlcad/src/external/Creo/part.cpp:24:
/usr/include/c++/11/bits/stl_algo.h:3467:5: note: ‘std::max’ declared here
3467 | max(initializer_list<_Tp> __l, _Compare __comp)
| ^~~
make[2]: *** [src/external/Creo/CMakeFiles/creo-brl.dir/build.make:118: src/external/Creo/CMakeFiles/creo-brl.dir/part.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:44521: src/external/Creo/CMakeFiles/creo-brl.dir/all] Error 2
make: *** [Makefile:166: all] Error 2 "
The text was updated successfully, but these errors were encountered: