亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

Chinaunix

標(biāo)題: 關(guān)于mysql++-3.1.0 [打印本頁]

作者: olivia2007    時(shí)間: 2011-07-12 16:00
標(biāo)題: 關(guān)于mysql++-3.1.0
請(qǐng)問大家有誰用過

mysql++-3.1.0

我從mysql的官方網(wǎng)上下載了mysql++-3.1.0.tar.gz,

現(xiàn)自己的程序需要連接mysql數(shù)據(jù)庫(kù),所以采用了mysql++-3.1.0中 mysql++-3.1.0\lib目錄下的代碼作為一個(gè)連接數(shù)據(jù)庫(kù)的共用代碼.并編譯為靜太庫(kù)libmysqlib.a用于程序的調(diào)用.

但編譯的時(shí)候出現(xiàn)了錯(cuò)誤如下


mysql/lib/libmysqllib.a(connection.o)(.text+0x97): In function `mysqlpp::Connection::thread_start()':
mysql/lib/dbdriver.h:668: undefined reference to `mysql_thread_init'
/mysql/lib/libmysqllib.a(connection.o)(.text+0x2f3): In function `mysqlpp::Connection::server_status() const':
mysql/lib/dbdriver.h:597: undefined reference to `mysql_stat'
mysql/lib/libmysqllib.a(connection.o)(.text+0x363): In function `mysqlpp::Connection::server_version() const':
mysql/lib/dbdriver.h:521: undefined reference to `mysql_get_server_info'
/mysql/lib/libmysqllib.a(connection.o)(.text+0x44b): In function `mysqlpp::Connection::kill(unsigned long) const':
mysql/lib/dbdriver.h:395: undefined reference to `mysql_kill'
mysql/lib/libmysqllib.a(connection.o)(.text+0x4a3): In function `mysqlpp::Connection::ipc_info() const':
mysql/lib/dbdriver.h:366: undefined reference to `mysql_get_host_info'

........


請(qǐng)問這是什么原因呀.在生成靜太庫(kù)libmysqllib.a(chǎn)時(shí),包含了dbdriver.h在里面呀. 怎么會(huì)出現(xiàn)那么多的沒有定義的參數(shù)呀?
作者: NJZhuJinhua    時(shí)間: 2011-07-12 23:16
這個(gè)是鏈接錯(cuò)誤,少鏈了個(gè)庫(kù)吧




歡迎光臨 Chinaunix (http://www.72891.cn/) Powered by Discuz! X3.2