Jeroen T. Vermeulen wrote: > On Wed, September 13, 2006 23:03, Jonathan Blitz wrote: > >> It compiles fine but totally screws up on the link. >> >> I have obviously forgotten something real simple. > > Maybe... Looking at the errors, it seems you're using Visual C++, right? > There are many things that can go wrong with that compiler, as well as > some general pitfalls. Please check the following: > > * Do you have the lib/ directory in the libpqxx source tree? > > * Are you using the libpqxx build that matches your own program's build > in the choice of Debug or Release? > > * Are you sure that you're linking against the libpqxx you want to link > against? In other words, is there no other libpqxx library in the > linker's search path? > > * Are you also sure you are using the libpqxx headers that you want to > use, and not some other set already installed somewhere on the system? > > * Is the libpqxx library compiled with the same compiler as your program? > > One thing you can try is to reproduce the linker command lines that were > used to build the test programs. If those worked, then that part of the > build evidently did something right.
Also, are you explicitly linking with libpq? Cheers, Bart _______________________________________________ Libpqxx-general mailing list Libpqxx-general@gborg.postgresql.org http://gborg.postgresql.org/mailman/listinfo/libpqxx-general