#450·EASTL

cannot link shared library

Author: mgood7123Created Nov 24, 2021Updated Mar 10, 2025
add_subdirectory(EASTL)
add_subdirectory(EASTL/test/packages/EAAssert)
add_subdirectory(EASTL/test/packages/EAMain)
add_subdirectory(EASTL/test/packages/EAStdC)
add_subdirectory(EASTL/test/packages/EAThread)

target_link_libraries(GLShaper OpenGL_Library glm EASTL EAAssert EAMain EAStdC EAThread)
[1/7] Linking CXX shared library GLShaper/EASTL/test/packages/EAStdC/libEAStdC.dylib
FAILED: GLShaper/EASTL/test/packages/EAStdC/libEAStdC.dylib 
: && /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -std=c++17 -g3 -O0 -D_DEBUG -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk -mmacosx-version-min=10.15 -dynamiclib -Wl,-headerpad_max_install_names  -o GLShaper/EASTL/test/packages/EAStdC/libEAStdC.dylib -install_name @rpath/libEAStdC.dylib GLShaper/EASTL/test/packages/EAStdC/CMakeFiles/EAStdC.dir/source/EACType.cpp.o GLShaper/EASTL/test/packages/EAStdC/CMakeFiles/EAStdC.dir/source/EACallback.cpp.o GLShaper/EASTL/test/packages/EAStdC/CMakeFiles/EAStdC.dir/source/EADateTime.cpp.o GLShaper/EASTL/test/packages/EAStdC/CMakeFiles/EAStdC.dir/source/EAFixedPoint.cpp.o GLShaper/EASTL/test/packages/EAStdC/CMakeFiles/EAStdC.dir/source/EAGlobal.cpp.o GLShaper/EASTL/test/packages/EAStdC/CMakeFiles/EAStdC.dir/source/EAHashCRC.cpp.o GLShaper/EASTL/test/packages/EAStdC/CMakeFiles/EAStdC.dir/source/EAHashString.cpp.o GLShaper/EASTL/test/packages/EAStdC/CMakeFiles/EAStdC.dir/source/EAMemory.cpp.o GLShaper/EASTL/test/packages/EAStdC/CMakeFiles/EAStdC.dir/source/EAProcess.cpp.o GLShaper/EASTL/test/packages/EAStdC/CMakeFiles/EAStdC.dir/source/EARandom.cpp.o GLShaper/EASTL/test/packages/EAStdC/CMakeFiles/EAStdC.dir/source/EAScanf.cpp.o GLShaper/EASTL/test/packages/EAStdC/CMakeFiles/EAStdC.dir/source/EAScanfCore.cpp.o GLShaper/EASTL/test/packages/EAStdC/CMakeFiles/EAStdC.dir/source/EASprintf.cpp.o GLShaper/EASTL/test/packages/EAStdC/CMakeFiles/EAStdC.dir/source/EASprintfCore.cpp.o GLShaper/EASTL/test/packages/EAStdC/CMakeFiles/EAStdC.dir/source/EASprintfOrdered.cpp.o GLShaper/EASTL/test/packages/EAStdC/CMakeFiles/EAStdC.dir/source/EAStdC.cpp.o GLShaper/EASTL/test/packages/EAStdC/CMakeFiles/EAStdC.dir/source/EAStopwatch.cpp.o GLShaper/EASTL/test/packages/EAStdC/CMakeFiles/EAStdC.dir/source/EAString.cpp.o GLShaper/EASTL/test/packages/EAStdC/CMakeFiles/EAStdC.dir/source/EATextUtil.cpp.o GLShaper/EASTL/test/packages/EAStdC/CMakeFiles/EAStdC.dir/source/Int128_t.cpp.o  -Wl,-rpath,/Users/smallville7123/StudioProjects/Astrid/app/src/main/cpp/MainApplication_CPP/debug_ninja_BUILD/GLShaper/EASTL/test/packages/EAAssert -Wl,-rpath,/Users/smallville7123/StudioProjects/Astrid/app/src/main/cpp/MainApplication_CPP/debug_ninja_BUILD/GLShaper/EASTL/test/packages/EAThread  GLShaper/EASTL/test/packages/EAAssert/libEAAssert.dylib  GLShaper/EASTL/test/packages/EAThread/libEAThread.dylib && :
Undefined symbols for architecture x86_64:
  "operator new[](unsigned long, char const*, int, unsigned int, char const*, int)", referenced from:
      EA::StdC::CallbackManager::CallbackVector::push_back(EA::StdC::Callback*) in EACallback.cpp.o
      EA::StdC::Strdup(char const*) in EAString.cpp.o
      EA::StdC::Strdup(char16_t const*) in EAString.cpp.o
      EA::StdC::Strdup(char32_t const*) in EAString.cpp.o
      EA::StdC::WildcardMatch(char const*, char const*, bool) in EATextUtil.cpp.o
      EA::StdC::WildcardMatch(char16_t const*, char16_t const*, bool) in EATextUtil.cpp.o
      EA::StdC::WildcardMatch(char32_t const*, char32_t const*, bool) in EATextUtil.cpp.o
      ...
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
[2/7] Building CXX object CMakeFiles/GL_FBO.dir/GL_FBO.cpp.o
ninja: build stopped: subcommand failed.
make: *** [build_debug_ninja] Error 1