Wrox Programmer Forums
|
BOOK: Professional iPhone and iPad Database Application Programming
This is the forum to discuss the Wrox book Professional iPhone and iPad Database Application Programming by Patrick Alessi; ISBN: 978-0-470-63617-6
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional iPhone and iPad Database Application Programming section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 16th, 2012, 04:56 PM
Registered User
 
Join Date: Nov 2011
Posts: 7
Thanks: 2
Thanked 0 Times in 0 Posts
Default Chapter 2 Build Issues

Hello: I had the Catalog app working previously, but now when I'm going thru the book again it does not work. The (9) errors are:

Undefined symbols for architecture i386: "_sqlite3_open", referenced from: -[DBAccess initializeDatabase] in DBAccess.o
"_sqlite3_close", referenced from: -DBAccess initialized....

I notice that an older working app that I created includes the following in the Framework:

libsqlite3.0 dynlib

and I don't see that in Frameworks of the app that is throwing those errors. How do I get that into the frameworks? I have the #import <sqlite3.h> statement in DBAccess.h, so not sure what else to do.

Thanks, Hawk
 
Old August 21st, 2012, 08:42 PM
Friend of Wrox
 
Join Date: Aug 2010
Posts: 298
Thanks: 1
Thanked 62 Times in 60 Posts
Default

To add the necessary library to the project, in the Project Navigator single click the project icon. This should present the Project and Targets in the editor. In the editor single click the item under Targets, then in the available tabs choose Build Phases. Open the Link Binary with Libraries disclosure triangle. Click the "+" sign. In the search field type "sq". This should filter down to the sqlite library. Double click the libsqlite3.0dylib option and it will be added to your project.

Bob
The Following User Says Thank You to thepianoguy For This Useful Post:
bubba hawk (August 22nd, 2012)
 
Old August 22nd, 2012, 12:33 PM
Registered User
 
Join Date: Nov 2011
Posts: 7
Thanks: 2
Thanked 0 Times in 0 Posts
Thumbs up

Thanks pianoguy. That worked like a charm.

I now see it in the book too - Page 40.

Last edited by bubba hawk; August 22nd, 2012 at 12:57 PM..





Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 2 build errors janitor BOOK: Beginning Visual C# 2010 1 January 21st, 2012 09:26 AM
StringHelpers in Chapter 8 gives a build error tdewey BOOK: ASP.NET 3.5 Enterprise Application Development with Visual Studio 2008: Problem Design Solutio 2 May 2nd, 2009 07:54 PM
Cant compile or build on chapter 3 stzd8 ASP.NET 1.x and 2.0 Application Design 4 October 30th, 2006 03:01 PM
C# - Chapter 3 Build Error TJ BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 0 July 29th, 2006 03:43 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.