electronicarts/EASTL

When cloning and building using CMake, error C2338: static_assert failed: 'eastl::atomic<T> atomic macro not implemented!' comes up

aryan-sinhala349 opened this issue · 1 comments

When I clone and build using the instructions in CONTRIBUTING.md, I get the mentioned error.

The full error message (excluding stuff related to where the repo was cloned) is:

...\EASTL\include\EASTL\internal\atomic\atomic_integral.h(330,2): error C2338: static_assert failed: 'eastl::atomic<T> atomic macro not implemented!' [...\EASTL\build\EASTL.vcxproj]
...\EASTL\include\EASTL\internal\atomic\atomic_integral.h(330): message : see reference to class template instantiation 'eastl::internal::atomic_integral_width<T,16>' being compiled [...\EASTL\build\EASTL.vcxproj]

The commands I used to clone and build were:

git clone https://github.com/electronicarts/EASTL
cd EASTL
git submodule update --init
mkdir build
cd build
cmake ..
cmake --build . --config Debug

I get the error in the last step. I am on Windows 10 21H2 (OS Build 19044.1766).

Fixed in PR #459