似乎无法找到我正在寻找的链接器链接 python.h 下的对象

问题描述

我有 producer-2u0connect-statusF+w9w9Nstatus-connector-elastic-search-topic16{"state":"RUNNING","trace":null,"worker_id":"172.31.133.111:8083","generation":9} Dconnect-status 并安装了 python3.4(我在 python3-dev 有目录)。我也安装了 /usr/include/python3.4

要编译我的 cpp 文件,我正在使用

boost-python-dev

但我的编译器似乎找不到 g++ python-binding/struct.cpp -I /usr/include/python3.4 -I python-binding/src -lboost_python -lpython3.4

-lpython3.4

我也厌倦了 /usr/bin/ld: cannot find -lpython3.4 -lpython3 -lpython 但没有任何效果。

解决方法

您应该能够通过使用 db_name 找到特定的链接标志——在我的机器上调用是 DB_CONNECTION_MUTATOR(尽管我目前的最低版本是 3.6)

输出将如下所示:

pkg-config

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...