I am working on a barcode reader app in iPhone. I am using the Zbar barcode reader app available on the web. I have tried sample code and it is working perfactly. It is scanning barcodes. Now I want to fetch the code and pass it as unique Id in my SQLite database. The problem is when I try to add libraries of both SQLite and barcode. It is giving me errors like:
Undefined symbols for architecture i386:
"_objc_autoreleasePoolPush", referenced from:
_main in main.o
"_objc_msgSend", referenced from:
_main in main.o
-[AppDelegate dealloc] in AppDelegate.o
-[AppDelegate application:didFinishLaunchingWithOptions:] in AppDelegate.o
-[AppDelegate createEditableCopyOfDatabaseIfNeeded] in AppDelegate.o
-[AppDelegate applicationDocumentsDirectory] in AppDelegate.o
-[ViewController databaseOpen] in ViewController.o
-[ViewController SaveData:] in ViewController.o
...
"_NSStringFromClass", referenced from:
_main in main.o
"_objc_autoreleasePoolPop", referenced from:
_main in main.o
I am getting 28 same type of errors.. I have searched on the web. But no one has used bar codes with SQLite. They have used other databases. Can I use an SQLite database to store barcode fetched data? How do I fix these errors?