DGtal-team / DGtalTools

Tools associated with DGtal Library
http://dgtal.org
GNU Lesser General Public License v3.0
44 stars 38 forks source link

3dSDPViewer #438

Open ngophuc opened 2 years ago

ngophuc commented 2 years ago

I get the following error while compiling 3dSDPViewer

error: no matching conversion for functional-style cast from 'int' to 'DGtal::SetName3D' viewer << SetName3D( name++ ) ; ^~~~~ /Users/hngo/Documents/Codes/Libs/DGtal/DGtal/src/DGtal/io/DrawWithDisplay3DModifier.h:242:10: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'int' to 'const DGtal::SetName3D' for 1st argument struct SetName3D : public DrawWithDisplay3DModifier { ^ /Users/hngo/Documents/Codes/Libs/DGtal/DGtal/src/DGtal/io/DrawWithDisplay3DModifier.h:242:10: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'int' to 'DGtal::SetName3D' for 1st argument /Users/hngo/Documents/Codes/Libs/DGtal/DGtal/src/DGtal/io/DrawWithDisplay3DModifier.h:242:10: note: candidate constructor (the implicit default constructor) not viable: requires 0 arguments, but 1 was provided 1 error generated. make[2]: [visualisation/CMakeFiles/3dSDPViewer.dir/3dSDPViewer.cpp.o] Error 1 make[1]: [visualisation/CMakeFiles/3dSDPViewer.dir/all] Error 2 make: *** [all] Error 2

dcoeurjo commented 2 years ago

Hi,

Which compiler / os are you using ?

kerautret commented 2 years ago

@ngophuc is it always present?