[Libpqxx-general] unable to link with applications under RHEL5.1

Jeroen T. Vermeulen jtv at xs4all.nl
Sun Dec 2 13:04:26 UTC 2007


On Sun, December 2, 2007 03:34, Leon Mergen wrote:

> So, as far as i can see, there is a function defined there that matches
> the
> parameters, so I have *no* idea why the linking doesn't work. I tried
> building the latest trunk version of pqxx, but that doesn't compile.

Edit include/pqxx/result.hxx, look for the freemem_result_data
declaration, and after its "void" return type, add "PQXX_LIBEXPORT":

void freemem_result_data(result data *) throw ();

becomes

void PQXX_LIBEXPORT freemem_result_data(result data *) throw ();


Jeroen




More information about the Libpqxx-general mailing list