[GENERAL] Srf function : missing library on PostgreSQL 8.3.6 on Windows?

2009-03-20 Thread Ben Ali Rachid
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_MultiFuncCal

Re: [GENERAL] Srf function : missing library on PostgreSQL 8.3.6 on Windows?

2009-03-20 Thread Ben Ali Rachid
ction : missing library on PostgreSQL 8.3.6 on Windows? À: "Ben Ali Rachid" Cc: pgsql-general@postgresql.org Date: Vendredi 20 Mars 2009, 16h37 Ben Ali Rachid writes: > I have this link error : "undefined reference to > 'init_MultiFuncCall(FunctionCallInfoData*)'"

Re: [GENERAL] Srf function : missing library on PostgreSQL 8.3.6 on Windows?

2009-03-22 Thread Ben Ali Rachid
eans ACCESS VIOLATION. I don't know what causes this exception. It's also a problem with some missing " extern 'C' " ? Or is it a null pointer problem  ? Tom Lane wrote : > On the whole I'd recommend using plain C for backend functions if you > possibly can. Unfortunately, I must use cpp because I must translate an temporal extension  (wrote on cpp with templates, ...) from Oracle to PostgreSQL. -- Ben Ali Rachid

Re: [GENERAL] Srf function : missing library on PostgreSQL 8.3.6 on Windows?

2009-03-22 Thread Ben Ali Rachid
        SRF_RETURN_DONE(funcctx); } #ifdef __cplusplus } #endif I have no problem when I load the DLL (no 'missing magic block' error). The server crashes when I try : SELECT normal_rand(5, 10.0, 20.0) or SELECT * FROM normal_rand(5, 10.0, 20.0). -- Ben Ali Rachid