On Thu, September 28, 2006 08:43, Andreas Gidlund wrote:
> I have successfully managed to compile postgre, libpq and libpqxx through
On a side note, the short name for PostgreSQL is "postgres," with the "s"
at the end!
> msys and mingw on windows xp. However, when I compile libpqxx, the only
> output I get is libpqxx.a and libpqxx.la, regardless if I use an of the
> parameters --enable-static, --disable-static, --enable-shared or
> --disable-shared. And *.a is a static library in unix, right?
> First of all, I expected it to be a windows file and second I want to only
> compile into a dynamic library, DLL. It doesn't matter if I use
> --disable-static together with --enable-shared, it only outputs libpqxx.a
> and libpqxx.la.
That's right: libpqxx.a is a static library. It's essentially an object
file (".o" in Unix, ".obj" in MS-DOS) that you can link into your program.
Static linking has the advantage that you don't need to bundle a shared
library with your program that must be installed on the system for your
program to run. It also means you avoid problems when the installed
version of the library is not quite the same you compiled against.
That said, if you use the --enable-shared option with the configure
script, you should be getting a shared library. On my systems the
libraries end up in src/.libs/ but this is all automatically managed by
the autotools--so your mileage may vary.
> What do I do wrong?
It doesn't *sound* like you're doing anything wrong, but we can take a
look. There may be an error message in your config.log... Anything about
shared objects there?
Jeroen
_______________________________________________
Libpqxx-general mailing list
[email protected]
http://gborg.postgresql.org/mailman/listinfo/libpqxx-general