Development environment:

Clion
Windows10
MinGW/lib/gcc/x86_64-w64-mingw32/8.1.0

Error message:
[ 50%] Building CXX object CMakeFiles/A.dir/main.cpp.obj
In file included from D:/Program Files/MinGW/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/cstddef:49,
                 from X:/libtorch_cpu/include/torch/csrc/api/include/torch/cuda.h:5,
                 from X:/libtorch_cpu/include/torch/csrc/api/include/torch/all.h:3,
                 from X:/libtorch_cpu/include/torch/csrc/api/include/torch/torch.h:3,
                 from Z:\GitCode\A\main.cpp:1:
D:/Program Files/MinGW/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/x86_64-w64-mingw32/bits/c++config.h:257:27: error: #if with no expression
 #if _GLIBCXX_USE_CXX11_ABI