Re: Cocoa and MySQL, compiling for intel and ppc
Re: Cocoa and MySQL, compiling for intel and ppc
- Subject: Re: Cocoa and MySQL, compiling for intel and ppc
- From: Andrew Farmer <email@hidden>
- Date: Thu, 1 Mar 2007 00:20:38 -0800
On 01 Mar 07, at 00:02, Michael de Vries wrote:
I searched the archive of this list, but could not find what I was
looking for. I am trying to make an application which interacts
with a MySQL database.
For this, I do not use a framework, but use the C api directly and
this goes well except for one thing.
At the top of my own DatabaseConnection.h file I import the MySQL
header file like this:
#import "/usr/local/mysql/include/mysql.h"
The problem with this is that I am using a Intel Mac, so the header
file is compiled for i386 and not for ppc.
You're confused. Header files contain source; they aren't "compiled
for" anything. The more likely problem is that the *library* is
compiled for Intel; you'll need to install or build a universal
version of the MySQL library to be able to build a universal
application against it.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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