X-Original-To: pgsql-interfaces@postgresql.org Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 40CB1475B8F for ; Sun, 2 Mar 2003 12:49:58 -0500 (EST) Received: from postgresql.org ([64.49.215.8]) by localhost (postgresql.org [64.49.215.8:10024]) (amavisd-new) with SMTP id 22132-08 for ; Sun, 2 Mar 2003 12:49:57 -0500 (EST) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id 67D6D475A7F for ; Sun, 2 Mar 2003 12:48:45 -0500 (EST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.6/8.12.6) with ESMTP id h22HmT5u018654; Sun, 2 Mar 2003 12:48:29 -0500 (EST) To: ash Cc: pgsql-interfaces@postgresql.org Subject: Re: Darwin libpq link failing In-reply-to: <200302270440.h1R4et0S004627@ed.cdbed1.client.atlantech.net> References: <200302270440.h1R4et0S004627@ed.cdbed1.client.atlantech.net> Comments: In-reply-to ash message dated "Wed, 26 Feb 2003 23:40:55 -0500" Date: Sun, 02 Mar 2003 12:48:29 -0500 Message-ID: <18653.1046627309@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new X-Archive-Number: 200303/4 X-Sequence-Number: 3753 ash writes: > gcc -O -pipe -Wall -g -Dbugs -I/Users/xpi/tmpsrc/lib/mutilities -L/Users/xpi/tmpsrc/lib/mutilities -Dpthreads -Ddarwin -I/usr/local/pgsql/include -L/usr/local/pgsql/lib -lpq -lpq mutil.o maintest.c > ld: Undefined symbols: > _PQclear > _PQerrorMessage > _PQsetdbLogin Surely the library reference must come after the files that reference it. regards, tom lane