EASTL
EASTL copied to clipboard
error C3861: 'XXXX_INLINE': identifier not found on MSVC
Compiler: MSVC 19.26.28805.0
When trying to use EASTL I get multiple errors.
error C3861: '_InterlockedExchange64_INLINE': identifier not found error C3861: '_InterlockedExchangeAdd64_INLINE': identifier not fo error C3861: '_InterlockedExchangeAdd64_INLINE': identifier not fo error C3861: '_InterlockedExchangeAdd64_INLINE': identifier not fo error C3861: '_InterlockedExchangeAdd64_INLINE': identifier not fo error C3861: '_InterlockedOr64_INLINE': identifier not found error C3861: '_InterlockedAnd64_INLINE': identifier not found error C3861: '_InterlockedXor64_INLINE': identifier not found error C3861: '_InterlockedExchange64_INLINE': identifier not found error C3861: '_InterlockedExchange64_INLINE': identifier not found error C3861: '_InterlockedExchangeAdd64_INLINE': identifier not found error C3861: '_InterlockedExchangeAdd64_INLINE': identifier not found error C3861: '_InterlockedExchangeAdd64_INLINE': identifier not found error C3861: '_InterlockedExchangeAdd64_INLINE': identifier not found error C3861: '_InterlockedOr64_INLINE': identifier not found error C3861: '_InterlockedAnd64_INLINE': identifier not found error C3861: '_InterlockedXor64_INLINE': identifier not found error C3861: '_InterlockedExchange64_INLINE': identifier not found
This is how I import it into my project.
ExternalProject_Add(EASTL
GIT_REPOSITORY https://github.com/electronicarts/EASTL
GIT_SHALLOW 1
GIT_SUBMODULES_RECURSE FALSE
CMAKE_ARGS
-DEASTL_BUILD_TESTS=ON
-DEASTL_BUILD_BENCHMARK=OFF
INSTALL_COMMAND "")
ExternalProject_Get_Property(EASTL SOURCE_DIR)
ExternalProject_Get_Property(EASTL BINARY_DIR)
INCLUDE_DIRECTORIES(
${SOURCE_DIR}/include
${SOURCE_DIR}/test/packages/EABase/include/Common
${SOURCE_DIR}/test/packages/EAAssert/include
${SOURCE_DIR}/test/packages/EAMain/include
${SOURCE_DIR}/test/packages/EAThread/include
${SOURCE_DIR}/test/packages/EAStdC/include)
LIST(APPEND PROJECT_LIB ${BINARY_DIR}${CONFIGURATION_SUFFIX}/EASTL.lib)