ofxDlib icon indicating copy to clipboard operation
ofxDlib copied to clipboard

error:functions that differ only in their return type cannot be overloaded

Open shiyamon opened this issue 6 years ago • 2 comments

I am still trying to compile my oF project with VS Code on Mac, and getting titled errors that I don't get while building with Xcode.

In file included from /my_project_path/src/ofApp.cpp:1: In file included from /my_project_path/src/ofApp.h:4: In file included from /my_oF_path/addons/ofxDlib/src/ofxDlib.h:12: In file included from /my_oF_path/addons/ofxDlib/libs/ofxDlib/include/dlib/of_image.h:15: In file included from /my_oF_path/addons/ofxDlib/libs/dlib/include/dlib/matrix/../optimization/../matrix.h:11: In file included from /my_oF_path/addons/ofxDlib/libs/dlib/include/dlib/matrix/matrix_la.h:13: In file included from /my_oF_path/addons/ofxDlib/libs/dlib/include/dlib/matrix/matrix_lu.h:15: /my_oF_path/addons/ofxDlib/libs/dlib/include/dlib/matrix/lapack/getrf.h:17:22: error: functions that differ only in their return type cannot be overloaded void DLIB_FORTRAN_ID(dgetrf) (integer* m, integer *n, double *a, ~~~~ ^ /my_oF_path/addons/ofxDlib/libs/dlib/include/dlib/matrix/lapack/fortran_id.h:36:31: note: expanded from macro 'DLIB_FORTRAN_ID' #define DLIB_FORTRAN_ID( id ) id##_ ^ :63:1: note: expanded from here dgetrf_ ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers/clapack.h:2731:5: note: previous declaration is here int dgetrf_(__CLPK_integer *__m, __CLPK_integer *__n, __CLPK_doublereal *__a,

Compiling on VS Code is done with make and Makefile loads "compile.project.mk" inside $(OF_ROOT)/libs/openFrameworksCompiled/project/makefileCommon/

Do you have any idea to make this work?

shiyamon avatar May 07 '18 13:05 shiyamon

I get the same error:

error: functions that differ only in their return type cannot be overloaded void DLIB_FORTRAN_ID(dgesvd) (const char* jobu, const char* jobvt,

Building from Xcode seems to work, I think this is related to this issue: https://github.com/bakercp/ofxDlib/issues/16

vvzen avatar Aug 05 '18 13:08 vvzen

Just confirming this is still an issue that I'm still not sure what's going on.

bakercp avatar Jun 28 '19 17:06 bakercp