Re: mySQL client lib linking problem...

2009-11-23 Thread Nick Zitzmann
On Nov 23, 2009, at 12:32 AM, Michael Davey wrote: > As an aside I have the 64bit PPC version as well - does anyone know if this > is needed? Only if you're planning on making a PPC64 version of your app. Otherwise, it's a waste of space. The PPC64 architecture never did get a whole lot of lov

Re: mySQL client lib linking problem...

2009-11-23 Thread Karolis Ramanauskas
Glad you found your solution... This is out of my league. Quite interesting though, so I will creep this exchange. Peace On Mon, Nov 23, 2009 at 1:32 AM, Michael Davey wrote: > Well, it may not have been the most elegant of solutions, but it works... > > Basically I downloaded the binary tarbal

Re: mySQL client lib linking problem...

2009-11-22 Thread Michael Davey
Well, it may not have been the most elegant of solutions, but it works... Basically I downloaded the binary tarballs for each of the relevant architectures from the mySQL download page, and then used lipo to stitch the client libraries into the universal binary that I needed. As an aside I have

Re: mySQL client lib linking problem...

2009-11-22 Thread Karolis Ramanauskas
I guess you found the answer as I was typing my correction. Do you have the source to dylib you are using? On Sun, Nov 22, 2009 at 11:54 PM, Karolis Ramanauskas wrote: > I made a little mistake. It's not a debug/release issue, although that > would give you similar problems. The dylib you have wa

Re: mySQL client lib linking problem...

2009-11-22 Thread Karolis Ramanauskas
I made a little mistake. It's not a debug/release issue, although that would give you similar problems. The dylib you have was compiled under different configuration! Is your project 64 bit or 32 bit? Try changing that. On Sun, Nov 22, 2009 at 11:52 PM, Michael Davey wrote: > The dylib is the on

Re: mySQL client lib linking problem...

2009-11-22 Thread Michael Davey
The dylib is the one that comes from the OS X build of mySQL - I did not build it myself :o( On 23 Nov 2009, at 16:50, Karolis Ramanauskas wrote: > I think your dylib file has been compiled under debug only. When you compile > your app under release, the compiler complains that dylib is compile

Re: mySQL client lib linking problem...

2009-11-22 Thread Michael Davey
On 23 Nov 2009, at 16:19, Michael Davey wrote: > I am using the mysql c library in my application, and have wrapped the C > calls in an objective-C class (source available if needed). > > I have added the linking references as per instructions I have found on the > web and when I run my applic

Re: mySQL client lib linking problem...

2009-11-22 Thread Karolis Ramanauskas
I think your dylib file has been compiled under debug only. When you compile your app under release, the compiler complains that dylib is compiled under debug. Recompile your dylib under release then compile your app under release. Better yet you should add you dylib project (drag and drop) to your

RE: MySQL?

2008-09-15 Thread Matthew Youney
Jason, Check out the CocoaMYSQL "bundled framework", aka MCPKit. It is quite easy to use, and there is an example app (cocoamysql). My personal feelings are that we should all be using ODBC to connect to these DBs, however there is ODBC support under cocoa is presently pretty dicey, so we are stu

Re: MySQL?

2008-09-15 Thread Jason Coco
On Sep 15, 2008, at 18:59 , J. Todd Slack wrote: Hi All, Does anyone know what I need to connect from OS X to a MySQL DB and run a few queries? This would be from Objective-C or C++. Any examples? What should I be downloading? The MySQL C API is distributed with MySQL, so if you have d

Re: MySQL?

2008-09-15 Thread Chris Williams
I've been using MySQL-Cocoa and it works fine... Light, fast, easy: http://mysql-cocoa.sourceforge.net/ Documentation is sparse (non-existent), but it's a simple API that you can easily see by looking at the code. Had to recompile for intel, but that wasn't a big deal. > From: "J. Todd Slack" <