FROM : Jeff LaMarche
DATE : Mon Mar 24 20:54:34 2008
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 just done a find for it).
>
> But now with the following code:
>
> #import <Cocoa/Cocoa.h>
> #include <libpq-fe.h>
>
> int main(int argc, char *argv[])
> {
> char *conninfo = "";
> PGconn *conn;
>
> conn = PQconnectdb(conninfo);
>
> return NSApplicationMain(argc, (const char **) argv);
> }
>
> I get the following error when I try to compile:
>
> "_PQconnectdb", referenced from:
> _main in main.o
> symbol(s) not found
> collect2: ld returned 1 exit status
>
> Is this code incorrect, or do I need to import something else?
>
> Thank you,
>
> Justin Giboney
> _______________________________________________
>
> Cocoa-dev mailing list (<email_removed>)
>
> 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:
> http://lists.apple.com/mailman/options/cocoa-dev/<email_removed>
>
> This email sent to <email_removed>
DATE : Mon Mar 24 20:54:34 2008
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 just done a find for it).
>
> But now with the following code:
>
> #import <Cocoa/Cocoa.h>
> #include <libpq-fe.h>
>
> int main(int argc, char *argv[])
> {
> char *conninfo = "";
> PGconn *conn;
>
> conn = PQconnectdb(conninfo);
>
> return NSApplicationMain(argc, (const char **) argv);
> }
>
> I get the following error when I try to compile:
>
> "_PQconnectdb", referenced from:
> _main in main.o
> symbol(s) not found
> collect2: ld returned 1 exit status
>
> Is this code incorrect, or do I need to import something else?
>
> Thank you,
>
> Justin Giboney
> _______________________________________________
>
> Cocoa-dev mailing list (<email_removed>)
>
> 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:
> http://lists.apple.com/mailman/options/cocoa-dev/<email_removed>
>
> This email sent to <email_removed>
| Related mails | Author | Date |
|---|---|---|
| Justin Giboney | Mar 21, 23:33 | |
| Justin Giboney | Mar 22, 00:50 | |
| Jason Stephenson | Mar 22, 01:34 | |
| Jeff LaMarche | Mar 22, 01:37 | |
| Western Botanicals | Mar 24, 20:21 | |
| Jeff LaMarche | Mar 24, 20:54 | |
| Justin Giboney | Mar 24, 22:06 | |
| Jens Alfke | Mar 25, 04:25 | |
| Andrew Satori | Mar 26, 21:12 |






Cocoa mail archive

