Jane1234567 / sqlitepersistentobjects

Automatically exported from code.google.com/p/sqlitepersistentobjects
0 stars 0 forks source link

r9 does not not compile. #7

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I found 2 issues trying to compile trunk.
1. Several headers use following construct
#if (TARGET_OS_MAC && ! (TARGET_OS_EMBEDDED || TARGET_OS_ASPEN))    
#import <Cocoa/Cocoa.h>
#else
#import <UIKit/UIKit.h>
#endif

On my system this includes "Cocoa.h" even building iPhone project. As a quick 
fix I changed 
#if (TARGET_OS_MAC && ! (TARGET_OS_EMBEDDED || TARGET_OS_ASPEN))    
to
#if (TARGET_OS_MAC && ! (TARGET_OS_EMBEDDED || TARGET_OS_ASPEN || 
TARGET_OS_IPHONE))  

2. SQLiteInstanceManager.m:88: if (sqlite3_exec(database, "PRAGMA encoding = 
\"UTF-8\"", 
NULL, NULL, &errorMsg) != SQLITE_OK) {

But errorMsg is not defined anywhere.

Thanks

Original issue reported on code.google.com by andrey.v...@gmail.com on 11 Oct 2008 at 7:27

GoogleCodeExporter commented 8 years ago
I also have the same error

Original comment by jeffery....@gmail.com on 14 Oct 2008 at 2:53

GoogleCodeExporter commented 8 years ago
I believe these issues have been addressed by tonight's fixes.  Can you please 
try checking out the latest version 
of the code and try compiling it?

Original comment by jeff.lam...@gmail.com on 21 Oct 2008 at 4:32