Re: Cocoa Database Connection

2008-03-26 Thread Andrew Satori
Justin, Sorry, I've been buried with other work and didn't get this earlier. There are several ways to solve what you want. You can bridge to the various databases using native toolkits or you can use a generic toolkit like JDBC via the java bridge (not supported anymore under Leopard) or

Re: Cocoa Database Connection

2008-03-24 Thread Jens Alfke
On 24 Mar '08, at 2:06 PM, Justin Giboney wrote: Putting this line -L/usr/local/pgsql/lib -lpq in my Other Linker Flags, made the error go away, If you're using Xcode, you can do the same thing through the GUI by adding the dylib (pq.dylib?) to the project using the Add File... command. (

Re: Cocoa Database Connection

2008-03-24 Thread Justin Giboney
Putting this line -L/usr/local/pgsql/lib -lpq in my Other Linker Flags, made the error go away, thanks Tony, thanks everyone else who was working with me Justin Giboney On Mar 24, 2008, at 2:57 PM, Tony Becker wrote: Seems like -L/usr/local/pgsql/lib -lqp or -L/usr/local/pgsql/lib -lqp

Re: Cocoa Database Connection

2008-03-24 Thread Jeff LaMarche
Did you include libpq.a from the /lib folder of our PostgreSQL implementation? On Mar 24, 2008, at 3:21 PM, Western Botanicals wrote: Thank you to everyone who has responded so far. I ended up fixing the problem by importing the "postgres_ext.h" file into my project (I wish I could have j

Re: Cocoa Database Connection

2008-03-24 Thread Western Botanicals
Thank you to everyone who has responded so far. I ended up fixing the problem by importing the "postgres_ext.h" file into my project (I wish I could have just done a find for it). But now with the following code: #import #include int main(int argc, char *argv[]) { char *conninfo =

Re: Cocoa Database Connection

2008-03-21 Thread Jeff LaMarche
On Mar 21, 2008, at 7:50 PM, Justin Giboney wrote: So, libpq sounds like a well supported way to go, but when I import "libpq-fe.h" into my project I get an error that says "postgres_ext.h: No such file or directory", along with 30 more errors which I assume are related to the lack of this

Re: Cocoa Database Connection

2008-03-21 Thread Jason Stephenson
Justin Giboney wrote: So, libpq sounds like a well supported way to go, but when I import "libpq-fe.h" into my project I get an error that says "postgres_ext.h: No such file or directory", along with 30 more errors which I assume are related to the lack of this file. I searched my computer for

Re: Cocoa Database Connection

2008-03-21 Thread Justin Giboney
So, libpq sounds like a well supported way to go, but when I import "libpq-fe.h" into my project I get an error that says "postgres_ext.h: No such file or directory", along with 30 more errors which I assume are related to the lack of this file. I searched my computer for it and I can't fin

Cocoa Database Connection

2008-03-21 Thread Justin Giboney
I am trying to find a way to connect Cocoa to a DBMS. I have been working for a few weeks trying to find a way to get Cocoa to communicate with PostgreSQL (at this point I am willing to use just about any mainstream database). I have tried using BaseTen (http://www.karppinen.fi/baseten/ ) an