Re: [sqlite] SQLite in Xcode

2011-05-27 Thread john darnell
-users-boun...@sqlite.org [mailto:sqlite-users-boun...@sqlite.org] > On Behalf Of BareFeetWare > Sent: Thursday, May 26, 2011 8:54 PM > To: General Discussion of SQLite Database > Subject: Re: [sqlite] SQLite in Xcode > > On 27/05/2011, at 10:42 AM, Simon Slavin wrote: > >

Re: [sqlite] SQLite in Xcode

2011-05-27 Thread Simon Slavin
On 27 May 2011, at 2:53am, BareFeetWare wrote: > The slideshow makes it pretty easy to follow: > http://www.barefeetware.com/sqlite/iosxcode/?ml You do actually show what boxes to click in Xcode which is pretty useful. Simon. ___ sqlite-users mailing

Re: [sqlite] SQLite in Xcode

2011-05-26 Thread BareFeetWare
On 27/05/2011, at 10:42 AM, Simon Slavin wrote: > Tom, John ran across two common problems with SQLite and Xcode: > > A) Xcode seems to want to interpret .c and .h files as C++ instead of C. > B) Confusion common to people who normally program for Windows or non-Open > systems about what combina

Re: [sqlite] SQLite in Xcode

2011-05-26 Thread Simon Slavin
On 27 May 2011, at 1:35am, BareFeetWare wrote: > Here's a simple answer: Tom, John ran across two common problems with SQLite and Xcode: A) Xcode seems to want to interpret .c and .h files as C++ instead of C. B) Confusion common to people who normally program for Windows or non-Open systems a

Re: [sqlite] SQLite in Xcode

2011-05-26 Thread BareFeetWare
On 27/05/2011, at 12:49 AM, john darnell wrote: > I am still trying to get SQLite to work on my Mac. I want to make sure I am > doing what I should be doing. Here's a simple answer: 1. Add the sqlite library to your target's build phase. 2. Add an Objective C wrapper class to your project, su

Re: [sqlite] SQLite in Xcode

2011-05-26 Thread Simon Slavin
On 26 May 2011, at 9:56pm, john darnell wrote: > One final message on this topic. In my last message I mentioned four > warnings remaining when I compile the file. I decided to at least look at > them in situ and see what they were. It turned out that it took very little > to fix them AFAIK

Re: [sqlite] SQLite in Xcode

2011-05-26 Thread john darnell
One final message on this topic. In my last message I mentioned four warnings remaining when I compile the file. I decided to at least look at them in situ and see what they were. It turned out that it took very little to fix them AFAIK. Here is what I did: > > Warning: declaration of fs

Re: [sqlite] SQLite in Xcode

2011-05-26 Thread john darnell
ho helped resolve this difficult problem. R, John > -Original Message- > From: sqlite-users-boun...@sqlite.org [mailto:sqlite-users-boun...@sqlite.org] > On Behalf Of Simon Slavin > Sent: Thursday, May 26, 2011 2:13 PM > To: General Discussion of SQLite Database > Subject: Re: [sql

Re: [sqlite] SQLite in Xcode

2011-05-26 Thread Simon Slavin
On 26 May 2011, at 8:12pm, john darnell wrote: > Thank you Mr. Ivanov. I can buy what you are saying 100%. What I need to > know is how to tell Xcode to compile that file as a C file if the standard > procedure is not working. > I recoup: the files are being classified as sourcecode.c.c and

Re: [sqlite] SQLite in Xcode

2011-05-26 Thread john darnell
> -Original Message- > From: sqlite-users-boun...@sqlite.org [mailto:sqlite-users-boun...@sqlite.org] > On Behalf Of Pavel Ivanov > Sent: Thursday, May 26, 2011 1:56 PM > To: General Discussion of SQLite Database > Subject: Re: [sqlite] SQLite in Xcode > > > Her

Re: [sqlite] SQLite in Xcode

2011-05-26 Thread Pavel Ivanov
lf Of Simon Slavin >> Sent: Thursday, May 26, 2011 10:01 AM >> To: General Discussion of SQLite Database >> Subject: Re: [sqlite] SQLite in Xcode >> >> > 1.)      I downloaded and uncompressed sqlite-autoconf-3070602.tar.gz from >> > the >> SQLite down

Re: [sqlite] SQLite in Xcode

2011-05-26 Thread john darnell
> > I'm not sure what .dylib you're using. The standard installation of OS X > with the > Developer tools has sqlite header files in > > /usr/include/sqlite3.h > > and > > /Developer/SDKs/MacOSX10.6.sdk/usr/include/sqlite3.h > > which may or may not be identical to each-other. > > Whereve

Re: [sqlite] SQLite in Xcode

2011-05-26 Thread Simon Slavin
On 26 May 2011, at 7:38pm, john darnell wrote: > However, I am intrigued by your remark that I should be using the header file > that comes with the .dylib. I had been using the header that came with the > amalgamation. Where can I find the header that should be used with the > .dylib? I'm n

Re: [sqlite] SQLite in Xcode

2011-05-26 Thread john darnell
> -Original Message- > From: sqlite-users-boun...@sqlite.org [mailto:sqlite-users-boun...@sqlite.org] > On Behalf Of Simon Slavin > Sent: Thursday, May 26, 2011 12:38 PM > To: General Discussion of SQLite Database > Subject: Re: [sqlite] SQLite in Xcode > One thing

Re: [sqlite] SQLite in Xcode

2011-05-26 Thread Simon Slavin
On 26 May 2011, at 5:35pm, john darnell wrote: >> Make sure sqlite3.c is 'ticked' next to 'Target Membership' for your product >> file. > > I am not someone who uses Xcode frequently--I usually develop on Windows and > port t the Mac, but if by "Target Membership" you mean the last column in t

Re: [sqlite] SQLite in Xcode

2011-05-26 Thread john darnell
Slavin > Sent: Thursday, May 26, 2011 10:01 AM > To: General Discussion of SQLite Database > Subject: Re: [sqlite] SQLite in Xcode > > > 1.) I downloaded and uncompressed sqlite-autoconf-3070602.tar.gz from > > the > SQLite download page. > > The top one, with ju

Re: [sqlite] SQLite in Xcode

2011-05-26 Thread Jean-Denis Muys
On 26 mai 2011, at 17:23, john darnell wrote: On 26 mai 2011, at 16:49, john darnell wrote: Since then I have tried using the sqlite.dylib file that comes with OSX but in doing so, some important SQLite functions (such as the prepare function) were not found during the link process. This shoul

Re: [sqlite] SQLite in Xcode

2011-05-26 Thread john darnell
> -Original Message- > From: sqlite-users-boun...@sqlite.org [mailto:sqlite-users-boun...@sqlite.org] > On Behalf Of Jean-Denis Muys > Sent: Thursday, May 26, 2011 10:08 AM > To: General Discussion of SQLite Database > Subject: Re: [sqlite] SQLite in Xcode > >

Re: [sqlite] SQLite in Xcode

2011-05-26 Thread Simon Slavin
On 26 May 2011, at 3:49pm, john darnell wrote: > I am still trying to get SQLite to work on my Mac. I want to make sure I am > doing what I should be doing. Here are the steps I have taken: > > 1.) I downloaded and uncompressed sqlite-autoconf-3070602.tar.gz from > the SQLite download p

Re: [sqlite] SQLite in Xcode

2011-05-26 Thread Jean-Denis Muys
On 26 mai 2011, at 16:49, john darnell wrote: > Hello everyone. > > I am still trying to get SQLite to work on my Mac. I want to make sure I am > doing what I should be doing. Here are the steps I have taken: > > 1.) I downloaded and uncompressed sqlite-autoconf-3070602.tar.gz from > t

Re: [sqlite] SQLite in Xcode

2011-05-26 Thread Pavel Ivanov
> 2.)     I moved SQLite3.c and SQLite3.h into my source folder and added them > to the project.  I made no changes to the code nor did I do anything special > when I added them to my project (i.e. I did not set any special compile > flags-I simply added the two files to the project). > 3.)    

[sqlite] SQLite in Xcode

2011-05-26 Thread john darnell
Hello everyone. I am still trying to get SQLite to work on my Mac. I want to make sure I am doing what I should be doing. Here are the steps I have taken: 1.) I downloaded and uncompressed sqlite-autoconf-3070602.tar.gz from the SQLite download page. 2.) I moved SQLite3.c and SQLite3