下载官网的最新的例子和插件运行后有报错求助

下载的server版本:https://www.dolphindb.cn/downloads/DolphinDB_Linux64_V2.00.9.3_ABI.zip

下载的C++ api: git clone https://github.com/dolphindb/api-cplusplus.git --depth=1 --branch release200.9 --single-branch DolphinDBAPI

下载的插件仓库地址: git clone https://github.com/dolphindb/DolphinDBPlugin.git --depth=1 --branch release200.9 --single-branch DolphinDBPlugin

将插件拷贝过去后,运行服务器。

执行dos代码

pluginPath = './plugins/httpClient/PluginHttpClient.txt';

try{loadPlugin(pluginPath)}catch(ex){print ex};

报错内容 :

"SYSTEM_Runtime" : "Couldn't load the dynamic library [./plugins/httpClient/bin/linux/libPluginHttpClient.so]: /mnt/e/work/proj.cpp/dolphindb_work_dir/server/plugins/httpClient/bin/linux/libPluginHttpClient.so: undefined symbol: _ZN4Util14createResourceExRKSsRK12SmartPointerI11FunctionDefEP7Session"

Syntax Error: [line #13] Can't find module [httpClient]

后续尝试:

自己按照教程步骤 安装好各种库后 编译出新的 httpClient的so和txt文件放过去,报以下错误


"SYSTEM_Runtime" : "Couldn't load the dynamic library [./plugins/httpClient/libPluginHttpClient.so]: ./plugins/httpClient/libPluginHttpClient.so: undefined symbol: _ZN4Util11createTableERKSt6vectorISsSaISsEERKS0_I12SmartPointerI8ConstantESaIS7_EE"


后续问题补充
利用 readelf -h 查看了 dolphindb libDolphinDB.so 还有编译出来的 PluginHttpClient.so 。都是ABI = 0的版本。 报错还是照旧报错还没解决。
请先 登录 后评论

1 个回答

wfHuang

插件默认是使用ABI=0进行编译的,如CMakeList.txt中的:

elseif(UNIX)
add_definitions("-DLINUX")
add_definitions("-D_GLIBCXX_USE_CXX11_ABI=0")
set(plugin_file "${CMAKE_CURRENT_LIST_DIR}/PluginHttpClient.txt")
endif()

所以要使用ABI=0的server版本,即不带ABI字样的linux zip包。
请先 登录 后评论