Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/3/bin/Host圆4/圆4/cl.exe - skipped The CXX compiler identification is MSVC 3.0 The C compiler identification is MSVC 3.0 Selecting Windows SDK version 2.0 to target Windows 3. Found Boost: C:/App/Anaconda3/Library/lib/cmake/Boost-1.73.0/BoostConfig.cmake (found suitable version "1.73.0", minimum required is "1.73") found components: python String sub-command REGEX, mode MATCHALL needs at least 5 arguments total toĬ:/App/Anaconda3/Library/lib/cmake/cmake/boost_python-1.73.0/boost_python-config.cmake:27 (include)Ĭ:/App/Anaconda3/Library/lib/cmake/Boost-1.73.0/BoostConfig.cmake:141 (find_package)Ĭ:/App/Anaconda3/Library/lib/cmake/Boost-1.73.0/BoostConfig.cmake:258 (boost_find_component)Ĭ:/App/Anaconda3/Library/share/cmake-3.18/Modules/FindBoost.cmake:448 (find_package) ĬMake Error at C:/App/Anaconda3/Library/lib/cmake/cmake/BoostDetectToolset-1.73.0.cmake:5 (string): ~\boost-python-examples\01-HelloWorld\BUILD> cmake -DCMAKE_PREFIX_PATH=C:\App\Anaconda3\Library\lib\cmake\cmake\boost_python-1.73.0. Ifīoost_python provides a separate development package or SDK, be sure it (requested version 1.73.0) with any of the following names:Īdd the installation prefix of boost_python to CMAKE_PREFIX_PATH or setīoost_python_DIR to a directory containing one of the above files. ĬMake Error at C:/App/Anaconda3/Library/lib/cmake/Boost-1.73.0/BoostConfig.cmake:141 (find_package):Ĭould not find a package configuration file provided by boost_python ~\boost-python-examples\01-HelloWorld\BUILD> cmake. ![]() ~> g++ -shared -fPIC -DBOOST_PYTHON_STATIC_LIB=1 -DPY_MAJOR_VERSION=3 -DPY_MINOR_VERSION=8 -I C:\App\Anaconda3\include -I C:\App\Anaconda3\Library\include -I C:\App\Anaconda3\Library\include\boost hello.cpp -L C:\App\Anaconda3\libs -L C:\App\Anaconda3\Library\lib -lboost_python38 -lboost_system -lpython38 -o hello.soĬ:\Users\.\AppData\Local\Temp\ccNhQFY4.o:hello.cpp:(.text+0x3b): undefined reference to `_imp_Py_Dealloc'Ĭ:\Users\.\AppData\Local\Temp\ccNhQFY4.o:hello.cpp:(.text+0xc7): undefined reference to `boost::python::detail::init_module(PyModuleDef&, void (*)())'Ĭ:\Users\.\AppData\Local\Temp\ccNhQFY4.o:hello.cpp:(.text$_ZNK5boost6python9type_info4nameEv+0x18): undefined reference to `boost::python::detail::gcc_demangle(char const*)'Ĭ:\Users\.\AppData\Local\Temp\ccNhQFY4.o:hello.cpp:(.text$_ZNK5boost6python15to_python_valueIRKPKcEclES5_+0x12): undefined reference to `boost::python::converter::do_return_to_python(char const*)'Ĭ:\Users\.\AppData\Local\Temp\ccNhQFY4.o:hello.cpp:(.text$_ZNK5boost6python15to_python_valueIRKPKcE10get_pytypeEv+0xa): undefined reference to `_imp_PyUnicode_Type'Ĭ:\Users\.\AppData\Local\Temp\ccNhQFY4.o:hello.cpp:(.text$_ZN5boost6python9converter23expected_pytype_for_argIPKcE10get_pytypeEv+0x31): undefined reference to `boost::python::converter::registration::expected_from_python_type() const'Ĭollect2.exe: error: ld returned 1 exit status 复制
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |