Re: STL problem in stored procedures - Mailing list pgsql-general

From Andreas Seltenreich
Subject Re: STL problem in stored procedures
Date
Msg-id 87hdb5evjw.fsf@gate450.dyndns.org
Whole thread Raw
In response to STL problem in stored procedures  (Zoltán Dudás <zoltan.dudas@freemail.hu>)
Responses Re: STL problem in stored procedures  (Zoltán Dudás <zoltan.dudas@freemail.hu>)
List pgsql-general
Zoltán Dudás schrob:

> I have downloaded an extension for PostgreSql.
> It contains stored procedures written in C.
> I compiled the neccessary files into an so file
> and I tried to use the functions, but it gives
> an error message when it has to load the
> shared object file.
> The error message says, it cannot locate a symbol.
> I think this symbol is part of the C++ STL.

Yes, that's a member of the basic_string template and the string
class.

> This is the error message:
>
> psql:/usr/share/postgresql/contrib/proximity.sql:5: ERROR:  could not load
> library "/usr/lib/postgresql/proximity.so": /usr/lib/postgresql/proximity.so:
> undefined symbol: _ZNKSs17find_first_not_ofERKSsj
>
> What should I do to be able to use this extension?

It looks like your .so isn't linked to libstdc++. How exactly did you
compile and link the .so?

regards,
Andreas
--

pgsql-general by date:

Previous
From: "Zlatko Matic"
Date:
Subject: Re: [ANNOUNCE] PostgreSQL 8.1 Beta 4
Next
From: Zoltán Dudás
Date:
Subject: Re: STL problem in stored procedures