Compile perl program with Pg - Mailing list pgsql-general

From John Li
Subject Compile perl program with Pg
Date
Msg-id 86E1599B8BAED51194960090277A368F02654B95@nell.pds.com
Whole thread Raw
List pgsql-general
Hi,

I was trying to compile my PERL program with Postgres on Linux but always got:

/tmp/cc1zfTto.o: In function 'dl_init':

/tmp/cc1zfTto.o(.text+0x74664): undefined reference to 'boot_Pg'

The command I used to compile is: perlcc -o test myprog.pl

In myprog.pl, I have "use Pg" then some select statement. 

Have I missed anything?

Thanks advance for your help!

 

John Li 

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: mailing list archives
Next
From: Dmitry Tkach
Date:
Subject: Re: accessing currval(), How? ... Trigger? I think...???