[prev in list] [next in list] [prev in thread] [next in thread]
List: postgresql-general
Subject: [GENERAL] Error linking libpq into client program
From: Jim Crate <jcrate () deepskytech ! com>
Date: 2004-05-05 22:55:09
Message-ID: r02010100-1033-427141219EE711D89CE60003939CD378 () [67 ! 35 ! 9 ! 216]
[Download RAW message or body]
Sorry for the incomplete message before, an extremely inconvenient keyboard
shortcut is being changed right now in my email client... :(
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 'pqParseInput3' in libpq.a
Referenced from 'PQmakeEmptyPGresult' in libpq.a
Referenced from 'pqGetc' in libpq.a
Referenced from 'getaddrinfo_all' in libpq.a
Referenced from 'createPQExpBuffer' in libpq.a
I didn't build PostgreSQL on my development machine, but copied over the lib and
include directories from the database machine (also running MacOS X 10.3.3).
Would that have anything to do with it? Any other ideas of things to try?
Jim Crate
Deep Sky Technologies, Inc.
---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic