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 - In function ‘ProError output_part(creo_conv_info*, ProMdl)’ #81

Open
Meenakshi-Devi opened this issue Jun 28, 2023 · 2 comments

Comments

@Meenakshi-Devi
Copy link

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 "

@starseeker
Copy link
Member

Does 0cc7665 address the issue?

@Souvikjana572
Copy link

#include<bits/stdc++.h>
//use this at top of code

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

3 participants