0
我下載了MySQL Connector/C++ 1.1.4的源代碼,並且能夠編譯和安裝它。但是,編譯該示例失敗。MySQL Connector/C++編譯示例/ standalone_example.cpp失敗
clang++ -o test_install -I/usr/local/include -I/usr/local/include/cppconn -lmysqlcppconn standalone_example.cpp
失敗
standalone_example.cpp:118:18: error: use of undeclared identifier 'EXAMPLE_FUNCTION'
cout << "(" << EXAMPLE_FUNCTION << ") on line " << __LINE__ << endl;
^
1 error generated.
這是鏈接到MySQL文檔此:http://dev.mysql.com/doc/connector-cpp/en/connector-cpp-installation-source-unix.html