Skip to content

Instantly share code, notes, and snippets.

@osiloke
Last active August 29, 2015 14:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save osiloke/448063e7dc54ad167375 to your computer and use it in GitHub Desktop.
Save osiloke/448063e7dc54ad167375 to your computer and use it in GitHub Desktop.
Error when compiling of on mac osx
[4/1051] Building CXX object CMakeFiles/openFrameworks.dir/src/openframeworks/3d/ofCamera.cpp.o
FAILED: /usr/bin/clang++ -DFREEIMAGE_LIB -DPOCO_NO_AUTOMATIC_LIB_INIT -DPOCO_STATIC -fcolor-diagnostics -std=gnu++11 -O3 -DNDEBUG -Wno-deprecated-register -I../src/fontconfig -I../src/fontconfig/src -I../src/freeglut -I../src/freeglut/include -I../src/freeimage -I../src/freeimage/OpenEXR -I../src/freeimage/OpenEXR/Half -I../src/freeimage/OpenEXR/Iex -I../src/freeimage/OpenEXR/IlmImf -I../src/freeimage/OpenEXR/IlmThread -I../src/freeimage/OpenEXR/Imath -I../src/glew -I../src/glew/include -I../src/glfw -I../src/glfw/include -I../src/glfw/include/GLFW -I../src/kiss -I../src/kiss/include -I../src/kiss/src -I../src/poco -I../src/poco/Crypto/include -I../src/poco/Crypto/include/Poco -I../src/poco/Crypto/include/Poco/Crypto -I../src/poco/Foundation/include -I../src/poco/Foundation/include/Poco -I../src/poco/Foundation/include/Poco/Dynamic -I../src/poco/Net/include -I../src/poco/Net/include/Poco -I../src/poco/Net/include/Poco/Net -I../src/poco/NetSSL_OpenSSL/include -I../src/poco/NetSSL_OpenSSL/include/Poco -I../src/poco/NetSSL_OpenSSL/include/Poco/Net -I../src/poco/Util/include -I../src/poco/Util/include/Poco -I../src/poco/Util/include/Poco/Util -I../src/poco/XML/include -I../src/poco/XML/include/Poco -I../src/poco/XML/include/Poco/DOM -I../src/poco/XML/include/Poco/SAX -I../src/poco/XML/include/Poco/XML -I../src/poco/Zip/include -I../src/poco/Zip/include/Poco -I../src/poco/Zip/include/Poco/Zip -I../src/rtaudio -I../src/rtaudio/include -I../src/tess2 -I../src/tess2/include -I../src/tess2/Sources -I../src/openframeworks -I../src/openframeworks/3d -I../src/openframeworks/app -I../src/openframeworks/communication -I../src/openframeworks/events -I../src/openframeworks/gl -I../src/openframeworks/graphics -I../src/openframeworks/math -I../src/openframeworks/sound -I../src/openframeworks/types -I../src/openframeworks/utils -I../src/openframeworks/video -MMD -MT CMakeFiles/openFrameworks.dir/src/openframeworks/3d/ofCamera.cpp.o -MF CMakeFiles/openFrameworks.dir/src/openframeworks/3d/ofCamera.cpp.o.d -o CMakeFiles/openFrameworks.dir/src/openframeworks/3d/ofCamera.cpp.o -c ../src/openframeworks/3d/ofCamera.cpp
clang: warning: unknown warning option '-Wno-deprecated-register'; did you mean '-Wno-deprecated'?
warning: unknown warning option '-Wno-deprecated-register'; did you mean '-Wno-deprecated'? [-Wunknown-warning-option]
In file included from ../src/openframeworks/3d/ofCamera.cpp:1:
In file included from ../src/openframeworks/3d/ofCamera.h:4:
In file included from ../src/openframeworks/types/ofRectangle.h:4:
In file included from ../src/openframeworks/utils/ofConstants.h:159:
In file included from /System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.h:20:
In file included from /System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:21:
In file included from /System/Library/Frameworks/CoreServices.framework/Frameworks/AE.framework/Headers/AE.h:20:
In file included from /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/CarbonCore.h:20:
In file included from /System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:25:
In file included from ../src/poco/Foundation/include/Poco/string.h:23:
In file included from ../src/poco/Foundation/include/Poco/Foundation.h:148:
In file included from ../src/poco/Foundation/include/Poco/Bugcheck.h:24:
In file included from /usr/include/c++/4.2.1/string:46:
In file included from /usr/include/c++/4.2.1/bits/char_traits.h:44:
/usr/include/c++/4.2.1/cstring:79:11: error: no member named 'memcpy' in the global namespace
using ::memcpy;
~~^
/usr/include/c++/4.2.1/cstring:80:11: error: no member named 'memmove' in the global namespace
using ::memmove;
~~^
/usr/include/c++/4.2.1/cstring:81:11: error: no member named 'strcpy' in the global namespace
using ::strcpy;
~~^
/usr/include/c++/4.2.1/cstring:82:11: error: no member named 'strncpy' in the global namespace
using ::strncpy;
~~^
/usr/include/c++/4.2.1/cstring:83:11: error: no member named 'strcat' in the global namespace
using ::strcat;
~~^
/usr/include/c++/4.2.1/cstring:84:11: error: no member named 'strncat' in the global namespace
using ::strncat;
~~^
/usr/include/c++/4.2.1/cstring:85:11: error: no member named 'memcmp' in the global namespace
using ::memcmp;
~~^
/usr/include/c++/4.2.1/cstring:86:11: error: no member named 'strcmp' in the global namespace
using ::strcmp;
~~^
/usr/include/c++/4.2.1/cstring:87:11: error: no member named 'strcoll' in the global namespace
using ::strcoll;
~~^
/usr/include/c++/4.2.1/cstring:88:11: error: no member named 'strncmp' in the global namespace
using ::strncmp;
~~^
/usr/include/c++/4.2.1/cstring:89:11: error: no member named 'strxfrm' in the global namespace
using ::strxfrm;
~~^
/usr/include/c++/4.2.1/cstring:90:11: error: no member named 'strcspn' in the global namespace
using ::strcspn;
~~^
/usr/include/c++/4.2.1/cstring:91:11: error: no member named 'strspn' in the global namespace
using ::strspn;
~~^
/usr/include/c++/4.2.1/cstring:92:11: error: no member named 'strtok' in the global namespace
using ::strtok;
~~^
/usr/include/c++/4.2.1/cstring:93:11: error: no member named 'memset' in the global namespace
using ::memset;
~~^
/usr/include/c++/4.2.1/cstring:94:11: error: no member named 'strerror' in the global namespace
using ::strerror;
~~^
/usr/include/c++/4.2.1/cstring:95:11: error: no member named 'strlen' in the global namespace
using ::strlen;
~~^
/usr/include/c++/4.2.1/cstring:97:11: error: no member named 'memchr' in the global namespace
using ::memchr;
~~^
/usr/include/c++/4.2.1/cstring:101:12: error: no matching function for call to 'memchr'
{ return memchr(const_cast<const void*>(__p), __c, __n); }
^~~~~~
/usr/include/c++/4.2.1/cstring:100:3: note: candidate function not viable: 1st argument ('const void *') would lose const qualifier
memchr(void* __p, int __c, size_t __n)
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
1 warning and 20 errors generated.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment