cg3hci / HexBox

HexBox is an intuitive modeling method and interactive tool for creating and editing hexahedral meshes. Hexbox brings the major and widely validated surface modeling paradigm of surface box modeling into the world of hex meshing.
Other
53 stars 7 forks source link

fixed compile issue by disambiguating DeleteSome and RefineSome::prepare #1

Closed nicolaslg closed 1 year ago

nicolaslg commented 1 year ago

Hi,

I got the following error when building the project :

[100%] Linking CXX executable gui
/usr/bin/ld: ../core/libcore.a(RefineSome.cpp.o): in function `HMP::Actions::prepare(std::vector<HMP::Dag::Element*, std::allocator<HMP::Dag::Element*> > const&)':
RefineSome.cpp:(.text+0x13a): multiple definition of `HMP::Actions::prepare(std::vector<HMP::Dag::Element*, std::allocator<HMP::Dag::Element*> > const&)'; ../core/libcore.a(DeleteSome.cpp.o):DeleteSome.cpp:(.text+0x158): first defined here
collect2: error: ld returned 1 exit status
gmake[2]: *** [gui/CMakeFiles/gui.dir/build.make:478: gui/gui] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:11898: gui/CMakeFiles/gui.dir/all] Error 2
gmake: *** [Makefile:136: all] Error 2

I am not sure whether this is a good solution but declaring prepare in the DeleteSome and RefineSome headers seemed to fix it for me.

gcherchi commented 1 year ago

Hi, We are still preparing the code for release (this work will be presented in July). Thank you for pointing out this issue; we will check and eventually fix it.

francescozoccheddu commented 1 year ago

Hi, thanks for your help! :wink: This issue has been fixed here.