Skip to content

error: #error Only Win32 target is supported! #3439

@MagicianAT

Description

@MagicianAT

make[3]: Entering directory '/home/abu/wfrest/build.cmake'
make[3]: Leaving directory '/home/abu/wfrest/build.cmake'
make[3]: Entering directory '/home/abu/wfrest/build.cmake'
[ 3%] Building CXX object src/core/CMakeFiles/core.dir/BluePrint.cc.o
In file included from /mnt/d/APP/WorkTool/msys64/mingw64/include/corecrt.h:10,
from /mnt/d/APP/WorkTool/msys64/mingw64/include/crtdefs.h:10,
from /mnt/d/APP/WorkTool/msys64/mingw64/include/sys/cdefs.h:7,
from /usr/include/features.h:486,
from /usr/include/x86_64-linux-gnu/c++/11/bits/os_defines.h:39,
from /usr/include/x86_64-linux-gnu/c++/11/bits/c++config.h:586,
from /usr/include/c++/11/functional:48,
from /home/abu/wfrest/src/core/BluePrint.h:4,
from /home/abu/wfrest/src/core/BluePrint.cc:1:
/mnt/d/APP/WorkTool/msys64/mingw64/include/_mingw.h:295:2: error: #error Only Win32 target is supported!
295 | #error Only Win32 target is supported!
| ^~~~~

在 WSL2 Ubuntu 出现的问题。
windows环境变量影响了make 过程

禁用环境变量也没用,而且我不想禁用这些环境变量

我应该怎么修改呢,期待回复,谢谢

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions