有一些问题,现在我已经阅读了以下内容:
我已经尝试在我的桌面上安装boost,并按照链接方面建议的帖子完成.我有以下代码:
#include <boost/python.hpp>
#include <Python.h>
using namespace boost::python;
Run Code Online (Sandbox Code Playgroud)
现在我尝试连接以下内容:
g++ testing.cpp -I /usr/include/python2.7/pyconfig.h -L /usr/include/python2.7/Python.h
-lpython2.7
Run Code Online (Sandbox Code Playgroud)
我也尝试了以下内容:
g++ testing.cpp -I /home/username/python/include/ -L /usr/include/python2.7/Python.h -lpython2.7
Run Code Online (Sandbox Code Playgroud)
我一直收到以下错误:
/usr/include/boost/python/detail/wrap_python.hpp:50:23: fatal error: pyconfig.h: No such
file or directory
# include <pyconfig.h>
Run Code Online (Sandbox Code Playgroud)
我不知道我哪里错了.我确实安装了boost.python,链接只是一个问题?