Search Postgresql Archives

trying to compile libpq with VS 2005 and static runtime

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





I'm trying to compile libpq from the 8.4.4 source to use the static runtime (/MT) with VS 2005, but it fails on dosmaperr being redefined in win32error.c

Here is the error message.
LIBCMT.lib(dosmap.obj) : error LNK2005: __dosmaperr already defined in libpq.lib(win32error.obj)
fatal error LNK1169: one or more multiply defined symbols found

I can comment out _dosmaperr in port/win32error.c to make it work, but I would like to know if it will have any adverse effects for a libpq client.

I want to link with the static runtime so that I don't have to provide an installer to install the VC redist package.

Thanks for the help.

Marc-Andé Lalonde

--
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux