Re: Srf function : missing library on PostgreSQL 8.3.6 on Windows?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Ben Ali Rachid <souliman239(at)yahoo(dot)fr>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Srf function : missing library on PostgreSQL 8.3.6 on Windows?
Date: 2009-03-20 15:37:07
Message-ID: 13951.1237563427@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Ben Ali Rachid <souliman239(at)yahoo(dot)fr> writes:
> I have this link error : "undefined reference to 'init_MultiFuncCall(FunctionCallInfoData*)'".

The fact that the linker knows the argument data type indicates that
you're trying to compile your code as C++. Postgres is written in C,
not C++.

You can try putting extern "C" { ... } around your inclusions of
Postgres header files, but you're likely to run into other problems
later on. On the whole I'd recommend using plain C for backend
functions if you possibly can.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Simon Riggs 2009-03-20 15:48:51 Re: What are the benefits of using a clustered index?
Previous Message Scott Ribe 2009-03-20 15:33:33 Re: What are the benefits of using a clustered index?