【发布时间】:2021-08-16 10:16:36
【问题描述】:
我正在尝试在 Windows 上编译 C++。 在Linux上编译需要的命令是:
g++ -O3 -Wall -shared -std=c++11 -fPIC `python -m pybind11 --includes` EO_functions_bipartite.cpp -o extremal_bi.so
我安装了 MinGW,但是当我尝试编译时出现以下错误:
g++.exe: error: python: No such file or directory
g++.exe: error: pybind11: No such file or directory
g++.exe: error: unrecognized command line option '-m'
g++.exe: error: unrecognized command line option '--includes EO_functions_bipartite.cpp'
g++.exe: fatal error: no input files
compilation terminated.
【问题讨论】:
-
有些工具和库你好像没有安装。