> C:\msys64\ucrt64\bin\x86_64-w64-mingw32-g++ -c -m64 -march=haswell -std=c++11 -isystem C:\Users\Administrator\AppData\Local\.xmake\packages\s\sonic-cpp\1.0.0\458df893a7ff477d92a940696c86a316\include -o C:\Users\ADMINI~1\AppData\Local\Temp\.xmake\230619\_EF9250378A744340846C152D91AA04B0.o C:\Users\ADMINI~1\AppData\Local\Temp\.xmake\230619\_4F3AD1D1A3F8411D9A0D827D5BABD56C.cpp
checking for flags (-fdiagnostics-color=always) ... ok
> x86_64-w64-mingw32-g++ "-fdiagnostics-color=always" "-m64"
> checking for c++ snippet(test)
checkinfo: ...amdir\core\sandbox\modules\import\core\tool\compiler.lua:84: @programdir\modules\core\tools\gcc.lua:721: In file included from C:\Users\Administrator\AppData\Local\.xmake\packages\s\sonic-cpp\1.0.0\458df893a7ff477d92a940696c86a316\include/sonic/dom/dynamicnode.h:24,
from C:\Users\Administrator\AppData\Local\.xmake\packages\s\sonic-cpp\1.0.0\458df893a7ff477d92a940696c86a316\include/sonic/sonic.h:19,
from C:\Users\ADMINI~1\AppData\Local\Temp\.xmake\230619\_4F3AD1D1A3F8411D9A0D827D5BABD56C.cpp:4:
C:\Users\Administrator\AppData\Local\.xmake\packages\s\sonic-cpp\1.0.0\458df893a7ff477d92a940696c86a316\include/sonic/dom/genericnode.h: In member function 'uint64_t sonic_json::GenericNode<NodeType>::getUintMax() const':
C:\Users\Administrator\AppData\Local\.xmake\packages\s\sonic-cpp\1.0.0\458df893a7ff477d92a940696c86a316\include/sonic/dom/genericnode.h:1069:32: error: 'uint' was not declared in this scope; did you mean 'int'?
1069 | return std::numeric_limits<uint>::max();
| ^~~~
| int
C:\Users\Administrator\AppData\Local\.xmake\packages\s\sonic-cpp\1.0.0\458df893a7ff477d92a940696c86a316\include/sonic/dom/genericnode.h:1069:36: error: template argument 1 is invalid
1069 | return std::numeric_limits<uint>::max();
| ^
写了个xmake包,测试时,编译执行的命令如下