Hi,

I used the builtin sqlite library that comes with Mac OS X. The problem I found 
was compiling it under 64 bit under X code seemed very difficult. I'm not 
blaming SQLite just my poor knowledge of how Xcode works and how 64 bit 
compilation worked. I needed 64 bit as I have very large data sets to work with.

So I have no issues with the built-in libraries, they may be a little older 
than the bleeding edge but work for me. I note that you are on 10.6.8 anyway so 
you may have the most up to date libraries for Snow Leopard.

Anyway, in answer to your specific questions.

1. I'm not a c++ expert as I only code in the One True Language 'C'. If you 
have a C++ (or do you mean Objective-C) project, check that Xcode allows .c 
files to be added. If your sqlite.c file is in the same directory as your .h 
files, this should not be a problem, I'd suggest you create a dummy command 
line project for C and see if you can add the .c file to your project list. I 
had no issues but I'm C based.

2. Don't move your sqlite db file to your bundle yet. If you have just started 
coding in Xcode, creating a bundle is about the last thing you need to do. Get 
your code working and keep your db file elsewhere. Once you have a working 
system THEN think about where your sqlite file needs to be. Create a #define 
MY_SQLFILE_IS for the file location and change it in your .h file when you need 
to. Xcode is really, really, really nasty and difficult about where it creates 
all your work in progress. It creates temporary files, so fir the moment focus 
on learning Xcode and getting your code working rather than worry about file 
locations in the future.  If this is your first time with Xcode start reading 
lots and lots as its difficult. I come from a UNIX background with 25 years C 
and Makefile experience and I struggle at times to understand how Xcode works. 

Rob.

On 22 Oct 2013, at 09:17, Igor Korot <ikoro...@gmail.com> wrote:

> Hi, ALL,
> I'm trying to build my C++ project which involves SQLite on MAC.
> I have Snow Leopard (OS X 10.6.8) along with XCode 4.2.
> I successfully made a project in XCode, then moved my cpp files in it.
> 
> Now I am trying to add the "sqlite3.c" but I couldn't.
> Going to "File"->"Add Files to,,," I see only my .cpp, .h and sqlite3.h
> files. I don't see sqlite3.c file in the "Add File" dialog.
> 
> Is there any setting I need to turn in order to be able to do so?
> 
> Also about the db file.
> I need to move it to the bundle. In order to do so I can make an additional
> "Build Phase" with "Copy Files". Problem is which destination to choose.
> 
> This is only second time I'm working with Apple XCode and first one with
> XCode +SQLite pair. ;-)
> 
> Thank you for any hints.
> _______________________________________________
> sqlite-users mailing list
> sqlite-users@sqlite.org
> http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to