Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/cmake/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Cmake 使用-DBUILD_SHARED_LIBS=ON'构建pugixml;Don’我不能和mingw一起工作_Cmake_Mingw32_Pugixml - Fatal编程技术网

Cmake 使用-DBUILD_SHARED_LIBS=ON'构建pugixml;Don’我不能和mingw一起工作

Cmake 使用-DBUILD_SHARED_LIBS=ON'构建pugixml;Don’我不能和mingw一起工作,cmake,mingw32,pugixml,Cmake,Mingw32,Pugixml,我尝试在powershell中使用mingw编译pugixml()。静态库工作得很好,但是当我尝试用命令编译dll时 cmake -G "MinGW Makefiles" -DBUILD_SHARED_LIBS=ON .. mingw32-make.exe ,我有以下信息: C:\ProgramData\chocolatey\lib\mingw\tools\install\mingw64\bin\windres.exe: C:\\Users\\kafka\\Desktop\

我尝试在powershell中使用mingw编译pugixml()。静态库工作得很好,但是当我尝试用命令编译dll时

cmake -G "MinGW Makefiles" -DBUILD_SHARED_LIBS=ON ..
mingw32-make.exe
,我有以下信息:

C:\ProgramData\chocolatey\lib\mingw\tools\install\mingw64\bin\windres.exe: C:\\Users\\kafka\\Desktop\\project\\pugixml\\scripts\\pugixml_dll.rc:11: syntax error
C:\Users\kafka\Desktop\project\pugixml\scripts\pugixml_dll.rc:2: fatal error: when writing output to : Broken pipe
cmake版本:3.18 mingw32品牌:

GNU Make 4.2.1
Built for x86_64-w64-mingw32
Copyright (C) 1988-2016 Free Software Foundation, Inc.