Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Display Modes
  #1 (permalink)  
Old August 16th, 2012, 05:56 PM
Registered User
Points: 31, Level: 1
Points: 31, Level: 1 Points: 31, Level: 1 Points: 31, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
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
  #2 (permalink)  
Old August 21st, 2012, 09:42 PM
Friend of Wrox
Points: 1,671, Level: 16
Points: 1,671, Level: 16 Points: 1,671, Level: 16 Points: 1,671, Level: 16
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
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)
  #3 (permalink)  
Old August 22nd, 2012, 01:33 PM
Registered User
Points: 31, Level: 1
Points: 31, Level: 1 Points: 31, Level: 1 Points: 31, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
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 01:57 PM.
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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 08: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 04:43 PM



All times are GMT -4. The time now is 02:20 AM.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.