SRF function : missing library on PostgreSQL 8.3.6 on Windows?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • diegoM
    New Member
    • Mar 2009
    • 2

    SRF function : missing library on PostgreSQL 8.3.6 on Windows?

    Hello,

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

    FuncCallContext *funcctx;
    ...
    if (SRF_IS_FIRSTCA LL()){
    funcctx = SRF_FIRSTCALL_I NIT(); // If I remove this line, no link error
    ...
    }


    I have this link error : "undefined reference to 'init_MultiFunc Call(FunctionCa llInfoData*)'". The init_MultiFuncC al 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.
  • Belial611
    New Member
    • Aug 2009
    • 1

    #2
    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:)

    Comment

    Working...