Connecting Tech Pros Worldwide Forums | Help | Site Map

SRF function : missing library on PostgreSQL 8.3.6 on Windows?

Newbie
 
Join Date: Mar 2009
Posts: 2
#1: Mar 20 '09
Hello,

I try to use the srf API and I have a link error. When I did :

FuncCallContext *funcctx;
...
if (SRF_IS_FIRSTCALL()){
funcctx = SRF_FIRSTCALL_INIT(); // If I remove this line, no link error
...
}


I have this link error : "undefined reference to 'init_MultiFuncCall(FunctionCallInfoData*)'". The init_MultiFuncCal function is in the funcapi.h file, but where is the associated library ? I try all the libraries of PostreSQL, but no success .

Any idea ? Thanks.

Newbie
 
Join Date: Aug 2009
Posts: 1
#2: Aug 19 '09

re: SRF function : missing library on PostgreSQL 8.3.6 on Windows?


I am use PostgreeSQL 8.4 and next parameter

-L"C:/Dev-Cpp/lib" -L"C:/Program Files/PGSQL/lib" -L"C:/Program Files/PGSQL/lib/plugins" --no-export-all-symbols --add-stdcall-alias ../../../PGSQL/lib/postgres.lib ../../../PGSQL/lib/libecpg.lib ../../../PGSQL/lib/libpgport.lib ../../../PGSQL/lib/libpq.lib -lobjc

and have success. Sorry for my English:)
Reply