On Tue, October 24, 2006 14:46, Mario Munda wrote:

> which I compile as: g++ -I/usr/local/include test.cxx -o test.cxx.

That's not right.  First off, you're not linking libpqxx and libpq to your
program, so obviously you're going to get link errors about that (which is
what you're seeing).  Second, you're writing your program binary to
"test.cxx." which is a very misleading name!  Or if that period (.) at the
end was just part of your sentence, it's even worse: the option "-o
test.cxx" means you're overwriting your source code with the binary!


> pqxx-config --cflags returns: -I/usr/local/include -I/usr/local/include

But that has nothing to do with it.  What you're getting are link errors,
so the problem happens long after the preprocessing stage.

Try "pqxx-config --libs" instead.  But fix that "-o" option first, or
you're going to lose your work!


> P.S.: There is also problem with all the sample programs included with
> libpqxx in directory: libpqxx-2.6.8/test; they all return bunch of error
> messages.

Can you give us some examples?


Jeroen


_______________________________________________
Libpqxx-general mailing list
[email protected]
http://gborg.postgresql.org/mailman/listinfo/libpqxx-general

Reply via email to