Error linking libpq into client program

From: Jim Crate <jcrate(at)deepskytech(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Error linking libpq into client program
Date: 2004-05-05 22:50:50
Message-ID: r02010100-1033-A8A71F549EE611D89CE60003939CD378@[67.35.9.216]
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I'm trying to build a client program to access a database using the libpq
interface on MacOS X 10.3.3 using CodeWarrior 9. PostgreSQL is at version
7.4.2.

It compiles ok, but I get a link error. I have linked to libpq.a, because I got
different errors before I did that. Here is the error I'm getting right now:

Link Error: undefined: '@_1' (code)
Referenced from 'pqSetenvPoll' in libpq.a
Referenced from 'pqSetenvPoll' in libpq.a
Referenced from 'pqSetenvPoll' in libpq.a
Referenced from 'pqSetenvPoll' in libpq.a
Referenced from 'pqSetenvPoll' in libpq.a
Referenced from 'pqSetenvPoll' in libpq.a
Referenced from 'pqSetenvPoll' in libpq.a

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Jim Crate 2004-05-05 22:55:09 Error linking libpq into client program
Previous Message scott.marlowe 2004-05-05 22:28:59 Re: sql standard: \' or ''