I am experiencing the following error while compiling my code with iOS5.With previous version it seems fine
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk/usr/include/sqlite3.h:230:24: error: redefinition of ‘sqlite3’ as different kind of symbol [3]
any suggestions
I have the same problem. I discovered that when I change the “Compiler for C/C++/Objective-C” from “Apple LLVM compiler 3.0” back to “LLVM GCC 4.2” the error disappears. (but that’s not the preferred iOS 5 setting)
Also it seems that sqlite3 is now included by default in iOS 5.0, which might cause the redefinition error when you included the sqlite3 as a framework in your project. But even when I removed the framework from my project, the error kept appearing (but only 2 instead of 4 this time).