Open QGB opened 6 months ago
build command : https://github.com/QGB/example-pybind11-vcpkg/blob/master/README.org
/home/qgb/anaconda3/bin/python client1.py
Traceback (most recent call last):
File "/home/qgb/github/example-pybind11-vcpkg/client1.py", line 2, in <module>
from cashflow import CashFlow
ImportError: /home/qgb/anaconda3/bin/../lib/libstdc++.so.6: version `GLIBCXX_3.4.30' not found (required by /home/qgb/github/example-pybind11-vcpkg/cashflow.cpython-311-x86_64-linux-gnu.so)
remove restcpp code is OK
不能保留头文件
#include <cpprest/http_client.h>
#include <cpprest/json.h>
/home/qgb/anaconda3/bin/python client1.py
Traceback (most recent call last):
File "/home/qgb/github/example-pybind11-vcpkg/client1.py", line 2, in <module>
from cashflow import CashFlow
ImportError: /home/qgb/github/example-pybind11-vcpkg/cashflow.cpython-311-x86_64-linux-gnu.so: undefined symbol: ERR_lib_error_string
make: *** [Makefile:17: run] Error 1
https://github.com/QGB/example-pybind11-vcpkg/blob/master/cashflow.cpp#L42