由于包含方式不正确(可能是)或某些原因,包含文件中出现错误?
我正在开发一个 iPad 应用程序,并且包含路径
/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.2.sdk/usr/lib ..
中的 libsqlite3.dylib 文件并导入我的 .h 文件..仍然出现以下错误:
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.2.sdk/usr/include/sqlite3.h:144:0 Expected '=', ',', ';', 'asm' or '__attribute__' before 'extern' in /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.2.sdk/usr/include/sqlite3.h
任何人都可以弄清楚为什么会发生这种情况,并请给出解决方案 谢谢..
I'm developing an iPad application and I'm including libsqlite3.dylib file from path
/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.2.sdk/usr/lib
and importing in my .h files.. still i get following error:
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.2.sdk/usr/include/sqlite3.h:144:0 Expected '=', ',', ';', 'asm' or '__attribute__' before 'extern' in /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.2.sdk/usr/include/sqlite3.h
can any one sort it out why is it happening, and please give the solution..
thank you..
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为您正在导入一些无法直接针对 Obj-C 代码进行编译的 Obj-C++ 标头。您需要执行以下操作之一 -
这应该告诉编译器将您的类编译为 ObjC-Cpp。
I think you are importing some Obj-C++ headers that cannot be compiled directly against your Obj-C code. You need to do one of the following -
That should tell the compiler to compile your class as ObjC-Cpp.