Well – at last I have managed to get it to compile and run. However, this was only in a DLL. I want to include libpqxx code in a Windows Form Application
created form VS 2005. When I do I get compile warnings and link problems. The set up is the same as the DLL. The link error messages indicate that it is looking for the
decorated name. Is this correct? Here are the errors: C:\libpqxx\include\pqxx/transaction.hxx(44) :
warning C4272: 'pqxx::basic_transaction::basic_transaction' : is marked __declspec(dllimport);
must specify native calling convention when importing a function. And then in the link: WFA.obj : error LNK2028: unresolved token (0A000013)
"public: virtual void __clrcall pqxx::nonnoticer::operator()(char const *
const)" ([EMAIL PROTECTED]@@[EMAIL PROTECTED]) referenced in function
"void __clrcall `dynamic initializer for 'const pqxx::nonnoticer::`local
vftable'''(void)"
([EMAIL PROTECTED]@@6B@@@[EMAIL PROTECTED]@@$$FYMXXZ) Each one of these errors repeats many times. Am I restricted to putting the cod in a DLL? Not the end of the world if I am but would be better
if I could put it straight into the program. Jonathan Blitz AnyKey Limited -- -- |
_______________________________________________ Libpqxx-general mailing list Libpqxx-general@gborg.postgresql.org http://gborg.postgresql.org/mailman/listinfo/libpqxx-general