Return-Path: pg_adm@postgres.berkeley.edu
Received: by postgres.Berkeley.EDU (5.61/1.29)
	id AA17680; Tue, 23 Feb 93 16:25:13 -0800
Date: Tue, 23 Feb 93 16:25:13 -0800
From: Elaine Chang <echang@cs.washington.edu>
Subject: large object compiling error
To: postgres@postgres.berkeley.edu
Sender: pg_adm@postgres.berkeley.edu
To: postgres@postgres.berkeley.edu
Message-Id: <Pine.3.05.9302231624.A6131-a100000@wolf.cs.washington.edu>
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII


Hi:

	I was trying to compile the example large object program on p. 113
of the Postgres Reference Manual.  I ran into this compiling error:

cc -I$POSTGRESHOME/src/lib/H -I$POSTGRESHOME/src/port/$PORTNAME -o
LOwrite.exe LOwrite.c libpq.a
ld: Undefined symbol 
   _setenv 
Compilation failed

These are the include files in my program (LOwrite.c).

#include <stdio.h>
#include <tmp/libpq.h>
#include <tmp/c.h>
#include <tmp/postgres.h>
#include <tmp/libpq-fe.h>
#include <tmp/libpq-fs.h>
#include <catalog/pg_lobj.h>

If you have seen this error before or have a possible solution, please let
me know.  Any help will be greatly appreciated.

Thanks!

Elaine Chang





