BRL-CAD / brlcad

BRL-CAD is a powerful cross-platform open source combinatorial solid modeling system
https://brlcad.org
Other
733 stars 147 forks source link

compilation Error - In function ‘ProError output_part(creo_conv_info*, ProMdl)’ #81

Open Meenakshi-Devi opened 1 year ago

Meenakshi-Devi commented 1 year ago

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 commented 1 year ago

Does 0cc7665244a14006fabec2199fc30609376ad6cb address the issue?