C++ API编译报错“libDolphinDBAPI.so: undefined reference to `uuid_generate'”

在Linux环境下使用DolphinDB C++ API编译项目,使用第一个动态库版本的g++编译命令时报错如下:/bin/linux_x64/ABI0/libDolphinDBAPI.so: undefined reference to `uuid_generate'

请问怎么解决呢?

请先 登录 后评论

1 个回答

胡鳗月

可以使用如下编译命令:g++ main.cpp -luuid -std=c++11 -DLINUX -D_GLIBCXX_USE_CXX11_ABI=0 -DLOGGING_LEVEL_2 -O2 -I../include   -lDolphinDBAPI -lpthread -lssl -lrt -L../bin/linux_x64/ABI0  -Wl,-rpath,.:../bin/linux_x64/ABI0 -o main

请先 登录 后评论