2011-06-08 20 views
0

我正在努力嘗試使用sqlite3函數調用數據庫的數據庫訪問類,但我得到所有這些錯誤,我只是擺弄如果有人在他們之前或者他們對他們爲什麼會發生這些事情有任何想法時經歷過這些錯誤。如何解決sqlite3錯誤,同時試圖實現我的DBAccess類

Undefined symbols: 
    "_sqlite3_finalize", referenced from: 
     -[DBAccess getAllMakes] in DBAccess.o 
    "_sqlite3_errmsg", referenced from: 
     -[DBAccess initalizeDatabase] in DBAccess.o 
     -[DBAccess closeDatabase] in DBAccess.o 
    "_sqlite3_step", referenced from: 
     -[DBAccess getAllMakes] in DBAccess.o 
    "_sqlite3_column_text", referenced from: 
     -[DBAccess getAllMakes] in DBAccess.o 
    "_sqlite3_prepare_v2", referenced from: 
     -[DBAccess getAllMakes] in DBAccess.o 
    "_sqlite3_open", referenced from: 
     -[DBAccess initalizeDatabase] in DBAccess.o 
    "_sqlite3_close", referenced from: 
     -[DBAccess initalizeDatabase] in DBAccess.o 
     -[DBAccess closeDatabase] in DBAccess.o 
ld: symbol(s) not found 
collect2: ld returned 1 exit status 
+0

好了,是你的項目,因爲我還沒有加入源碼框架..或東西的效果剛剛搞清楚我現在要添加的框架..一旦我找到了它,我會發布更新。 – tinhead 2011-06-08 22:58:45

+0

所以我最終不得不添加libsqlite3.0.dylib框架和所有的錯誤去:)這是一個偉大的感覺哈哈。 – tinhead 2011-06-08 23:23:45

回答

4

添加框架libsqlite3.0.dylib在框架

+0

非常感謝你 – fullMoon 2015-06-06 15:36:09

相關問題