我正在尝试在MAC OSX 10.12.6中运行Mysql Hello World示例 https://dev.mysql.com/doc/connector-cpp/en/connector-cpp-examples-complete-example-1.html
我在这里为Mac OS下载了mysql的C ++连接器https://dev.mysql.com/downloads/connector/cpp/
我安装了MAMP PRO作为Mysql Server
当我编译代码并运行它时会出现以下错误
Amans-MacBook-Pro:c ++ khanakia $ g ++ -o a -I / usr / local / include -I / Volumes / D / www / c ++ -W -lmysqlcppconn a.cpp&& ./a
运行'SELECT'Hello World!' »AS _message'...
libc ++ abi.dylib:以sql :: SQLException类型的未捕获异常终止
中止陷阱:6
Amans-MacBook-Pro:c ++ khanakia $
答案 0 :(得分:0)