dyld:懒符号绑定失败

时间:2018-06-18 07:14:24

标签: c++ macos shared-libraries

这个错误与什么有关?这是lib不匹配吗?

当我尝试运行我编译的二进制文件时发生。如果需要,我可以提供更多细节。

cmake_minimum_required(VERSION 3.10)
project(water_db_writer)

include_directories(${CMAKE_SOURCE_DIR}/libs/mysql/include)
link_directories(${CMAKE_SOURCE_DIR}/libs/mysql/lib64)

include_directories(/opt/local/include/)
link_directories(/opt/local/lib/)

set(CMAKE_CXX_STANDARD 11)

add_executable(water_db_writer main.cpp)
target_link_libraries(water_db_writer mysqlcppconn8 ssl crypto)

CMake的:

IIS Management Console

0 个答案:

没有答案