On Fri, July 21, 2006 21:52, DEV wrote: > I agree with you and do apologize to everyone on the list.
No problem, I'm sure--it's just that without the information, we can't know how to help! > The build seems to work because I do end up with the lib files. > > I have the lib files linked under Project->Settings->Link Which lib files exactly, though? What you show here does not use libpqxx at all, only libpq... > #include "C:\Program Files\PostgreSQL\8.1\include\libpq-fe.h" On a side note: it's better not to write your #include statements like this. Better just to "#include <libpq-fe.h>", and then tell your compiler that it should look in "C:\Program Files\PostgreSQL\8.1\include" for additional header files. > When I build the app I get > > Linking... > psqltesting3.obj : error LNK2001: unresolved external symbol _PQconnectdb > Debug/psqltesting3.exe : fatal error LNK1120: 1 unresolved externals > Error executing link.exe. > > ----------------------------------------------------------------- > > So I am using the wrong libpqxx lib file and need to rebuild using a newer > version but I am not sure what version I should be using or I don't have > the > lib file being called right when I build the app. Well, like I said, you don't need libpqxx at all in this case. But in either case--whether you use libpqxx or libpq--you do need to link to libpq. It looks like *maybe* that is not happening here. Make sure you're linking to libpq! In some cases it may even matter in what order you link things--if so, libpq should come after your own program on the linking command line. Of course it's equally possible that something else is going wrong. Windows is a bit different from most other systems when it comes to libraries--but unfortunately I know very little about that part. Jeroen _______________________________________________ Libpqxx-general mailing list [email protected] http://gborg.postgresql.org/mailman/listinfo/libpqxx-general
