help linking sqlite3 wrapper
help linking sqlite3 wrapper
- Subject: help linking sqlite3 wrapper
- From: John Velman <email@hidden>
- Date: Mon, 4 Aug 2008 08:56:29 -0700
I need a sqlite wrapper. After much surfing and reading, I decided to try
the one:
// Created by Dustin Mierau on Tue Apr 02 2002.
// Copyright (c) 2002 Blackhole Media, Inc. All rights reserved.
//
After making changes to move the download from sqlite to sqlite3, and
checking that I have /usr/local/lib/libsqlite3.a, and putting
/usr/local/lib in the library search path of the project, the source for
the Demo compiles but does not link.
I'm using SDK10.4 on Leopqard with XCode 3.1 (The target machine for my app
is still running Tiger).
Here are some typical error messages, that cover both the cocoa and sqlite3
aspects of the linkage:
".objc_class_name_NSMutableString", referenced from:
literal-pointer@__OBJC@__cls_refs@NSMutableString in SQLDatabase.o
literal-pointer@__OBJC@__cls_refs@NSMutableString in SQLRow.o
"_sqlite3_free_table", referenced from:
-[SQLDatabase performQuery:] in SQLDatabase.o
-[SQLDatabase performQuery:] in SQLDatabase.o
-[SQLResult dealloc] in SQLResult.o
I've checked with nm that my libsqlite3.a has the entry point
_sqlite3_free_table; (Have also checked several of the other sqlite
related linking errors).
Other cocoa, Xcode, objective-c, SDK10.4 projects work fine on my setup
(after I get the spelling and punctuation right). So evidently there is
something about my project setup that is keeping this from linking.
Would appreciate any hints about where to look.
Thanks.
John V.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden