Return-Path: pg_adm@postgres.berkeley.edu
Received: by postgres.Berkeley.EDU (5.61/1.29)
	id AA06398; Tue, 28 Jul 92 21:04:48 -0700
Date: Tue, 28 Jul 92 21:04:48 -0700
Message-Id: <9207290404.AA06398@postgres.Berkeley.EDU>
From: stdbms@hardy.WPI.EDU (STUDBUMS)
Subject: C function
To: postgres@postgres.berkeley.edu
Sender: pg_adm@postgres.berkeley.edu



Hi,

I got an error "link failed" when I tried to define a simple C function
and use it in POSTGRES. I noticed that there was a discussion about the 
same problem sometimes ago. The suggested solution is to do the 
following:
      ld -r ..
However, the problem was still there after I tried this.  Could someone
tell me how to deal with the problem?

Another question, in the example given on page 50 of the manual. A
function GetAttributeByName() is used to get the value of an attribute,
but the result is taken differently between 'salary' and 'age', the
former is an address while the later is a value, how can I explain
this situation?

Thanks a lot.



