1

I have an error in my projet: sqlit3_open and sqlite_close symbol not found. please how can I resolve this problem.

I added the framework libsqlite3.dylib and the header #import "sqlite3.h". the problem persist.

please my english is very bad, done make atention

thank all

1 Answer 1

1

here is good example of sqlite3 use in ios

http://www.icodeblog.com/2008/08/19/iphone-programming-tutorial-creating-a-todo-list-using-sqlite-part-1/

check this.

Sign up to request clarification or add additional context in comments.

3 Comments

your link is good. but it n't resolve my problem. I done no if the problem is my Osx version and my SDK. I use osx 10.5.8 xcode 3.1.2 and iphone simulator 2.2.1. have you an idea. thank
ld warning: in /install/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.0.sdk/usr/lib/libsqlite3.dylib, file is not of required architecture ld warning: in /install/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.0.sdk/usr/lib/libsqlite3.0.dylib, file is not of required architecture
Undefined symbols: "_sqlite3_open", referenced from: -[LiteSqlViewController openDB] in LiteSqlViewController.o "_sqlite3_close", referenced from: -[LiteSqlViewController openDB] in LiteSqlViewController.o ld: symbol(s) not found collect2: ld returned 1 exit status "_sqlite3_open", referenced from: -[LiteSqlViewController openDB] in LiteSqlViewController.o "_sqlite3_close", referenced from: -[LiteSqlViewController openDB] in LiteSqlViewController.o ld: symbol(s) not found collect2: ld returned 1 exit status Build failed (2 errors)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.