Return-Path: pg_adm@postgres.berkeley.edu
Received: by postgres.Berkeley.EDU (5.61/1.29)
	id AA20410; Sat, 12 Jun 93 11:31:57 -0700
Message-Id: <9306121831.AA20410@postgres.Berkeley.EDU>
From: "Cheng S. Chang" <cschang@cat.syr.edu>
Subject: a linking question
To: postgres@postgres.berkeley.edu
Sender: pg_adm@postgres.berkeley.edu
Date: Sat, 12 Jun 93 14:33:26 -0400
From: "Cheng S. Chang" <cschang@cat.syr.edu>

Hi !
A linking question:

The command which I executed is as follow:
"cc -I/usr/local/postgres/src/backend/obj -I/usr/local/postgres/src/backend -L/usr/local/postgres/src/libpq/obj test.c -o test"

The message which I received is as follows:
ld: Undefined symbol 
   _PQsetdb 
   _p_write 
   _PQexec 
   _p_open 

How can I compile a program with the above four functions successfully? 

Thanks in advance.

--Martin Chang
