Closed denniskb closed 1 year ago
The problem is that GNUC's standard C/C++ runtime has some conflicts with Windows SAL annotations required for the library. The workaround for this issue is:
#include <algorithm>
#include <utility>
#include <DirectXMath.h>
This is mentioned in the readme:
https://github.com/microsoft/DirectXMath#compiler-support
Since this does not impact any other toolset (including MinGW on Windows), I do not have these headers included in DirectXMath and I don't actually need them for the library.
Sry completely overlooked that part. Thx for the info!
Problem
Trying to compile
results in the following error output:
Compile flags:
-std=c++20 -O2
Fix
Include
<algorithm>
beforeDirectXMath.h
:compiles fine. I don't know what standard header DirectXMath actually depends on, it just happens to work with
<algorithm>
.