I'm using clang++
that links to MSVC
.
I compiled shaders (DirectXTK\Shaders
) and included SpriteBatch
and SpriteFont
in my source code.
If I include just the header files (.h
), I get linking errors; if I include source files (.cpp
; with or without .h
), I get this:
SpriteBatch.cpp:532:27: error: expected unqualified-id
size_t newSize = std::max(InitialQueueSize, mSpriteQueueArraySize * 2);
^
C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\shared\minwindef.h:193:29: note: expanded from macro 'max'
#define max(a,b) (((a) > (b)) ? (a) : (b))
I tried to find the solution on the GitHub issues page of DirectXTK, on this website and on the web, but didn't find anything helpful.