Re: [sqlite] Adding the source to XCode

2013-10-24 Thread Keith Medcalf
>int A::Foo() >{ > return sqlite3_last_insert_rowid( m_handle ); >} > >I'm trying to compile my program for the 32-bit using gcc-4.2. The rowid *return type from sqlite3_last_insert* is a long long, not an int. long long A::foo() { return sqlite3_last_insert_rowid(m_handle); } will

Re: [sqlite] Adding the source to XCode

2013-10-24 Thread Igor Korot
Hi, Simon, On Tue, Oct 22, 2013 at 4:53 PM, Simon Slavin wrote: > > On 23 Oct 2013, at 12:13am, Igor Korot wrote: > > > Now one last question hopefully. Where XCode will store the db file > inside > > the bundle? Is there a specific place or it will

Re: [sqlite] Adding the source to XCode

2013-10-22 Thread Simon Slavin
On 23 Oct 2013, at 12:13am, Igor Korot wrote: > Now one last question hopefully. Where XCode will store the db file inside > the bundle? Is there a specific place or it will go where the executable > will be put? If you haven't specified anywhere, then it will just be

Re: [sqlite] Adding the source to XCode

2013-10-22 Thread Igor Korot
Simon, First of, thank you for all those links and explanation. Very much appreciated. Now, more below. On Tue, Oct 22, 2013 at 3:48 PM, Simon Slavin wrote: > > On 22 Oct 2013, at 7:37pm, Igor Korot wrote: > > > On Tue, Oct 22, 2013 at 2:29 AM, Simon

Re: [sqlite] Adding the source to XCode

2013-10-22 Thread Simon Slavin
On 22 Oct 2013, at 7:37pm, Igor Korot wrote: > On Tue, Oct 22, 2013 at 2:29 AM, Simon Slavin wrote: > >> On 22 Oct 2013, at 9:17am, Igor Korot wrote: >> >>> Now I am trying to add the "sqlite3.c" but I couldn't. >>> Going to

Re: [sqlite] Adding the source to XCode

2013-10-22 Thread Igor Korot
Hi, Simon,, On Tue, Oct 22, 2013 at 2:29 AM, Simon Slavin wrote: > > On 22 Oct 2013, at 9:17am, Igor Korot wrote: > > > 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

Re: [sqlite] Adding the source to XCode

2013-10-22 Thread Simon Slavin
On 22 Oct 2013, at 9:17am, Igor Korot wrote: > 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

Re: [sqlite] Adding the source to XCode

2013-10-22 Thread Rob Willett
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

[sqlite] Adding the source to XCode

2013-10-22 Thread Igor Korot
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