On 29 March 2012 10:10, rno <[email protected]> wrote: > Hi all, > > Considering usage of SOCI I made some simple tests and the following line > does not work under Visual Studio 2010 version with PostgreSQL backend: > > soci::session sql(soci::postgresql, "string"); > > There are linker errors. The dynamically loadable backend version: > > soci::session sql(*soci::factory_postgresql(), "string"); > > works well.
What do you mean as "does not work" ? > Both versions works under Ubuntu. I suspect errors in export symbols, but > maybe I did not notice some settings. Do You have some experience with this > case? Yes, I remember I experienced some linker errors while trying to use the static object directly under Visual Studio. I'd not tried to pursue it further to find out what's wrong as there is factory function available. Best regards, -- Mateusz Loskot, http://mateusz.loskot.net ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure _______________________________________________ Soci-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/soci-users
