我一直在尝试为c++安装nana库。我使用过这些指南:https://github.com/qPCR4vir/nana-docs/wiki/Installation
https://github.com/qPCR4vir/nana-docs/wiki/Install-and-use-nana-with-mingw---step-by-step
我遇到了这样的问题:“在您使用的集成开发环境/构建系统中创建一个静态链接库解决方案,并将放置在NanaPath/source及其所有子目录中的所有文件添加到项目中。然后编译该解决方案,您将得到一个静态链接文件NanaStatic,其路径类似于NanaPath/build/bin/IDEName。”
我像上面说的那样下载了MinGW、git和cmake。我打开了bat文件,运行带有链接的"git克隆“,运行
cmake -G "MinGW Makefiles"
它做了它的事情,并成功地完成了。然后我试着运行"make“,结果显示结果是6%:
In file included from C:/Users/.../nana/verbose_prepocessor.hpp:99:0,
from C:\Users\...\nana\source\deploy.cpp:242:C/Users/.../nana/include/filesystem/filesystem.hpp:71:39: fatal error: experimental/filesystem: No such file or directory
# include<experimental/filesystem>
^
compilation terminated.
make[2]: *** [CMakeFiles\nana.dir\build.make:163: CMakeFiles/nana.dir/source/deploy.cpp.obj] Error 1
make[1]: *** [CMakeFiles\Makefile2:67: CMakeFiles/nana.dir/all] Error 2
make: *** [Makefile:129: all] Error 2
我尝试使用不同的代码源(git和sourceforge),但没有什么不同。我试着使用GUI,但我遇到了其他错误,无法识别MinGW。我在网上四处寻找答案,但他们大多引导我回到我正在使用的指南。我用gcc/g++ --版本检查了我的GCC和G++版本,他们都是6.3.0。
我会采纳任何建议/建议,谢谢!
https://stackoverflow.com/questions/44302473
复制相似问题