On Thu, December 22, 2005 00:49, Kevin Anthoney wrote: > If I try to compile:
[-----8<------] > std::cout << pqxx::sqlesc( "Hello World!" ) << std::endl; [-----8<------] > I get "undefined reference to pqxx::sqlesc" errors. However, if I rebuild > libpqxx, this time remembering the --enable-shared flag, the above > compiles with no problems. Yep, that's a bug. Going through my CVS history and download pages, I think it was fixed 10-11 months ago... But that would make it *after* the 2.5.5 release. The problem is the use of g++ 4.0's ELF visibility attribute: this was set to "invisible" by default in libpqxx, since it vastly reduces library sizes and load times. But I'd forgotten to mark sqlesc() as exported, so from the linker's point of view it just disappeared out of the library. Try libpqxx 2.6.1; it's in the "development" branch but that's mostly because of new features not being fully stabilized yet. As long as you don't use the obsolete 1.x API it should work just fine for existing code though. Even if you do (1.x had Functions and Classes with Capital Letters) all I'd expect to see is some warnings at the strictest compiler settings. Jeroen _______________________________________________ Libpqxx-general mailing list [email protected] http://gborg.postgresql.org/mailman/listinfo/libpqxx-general
