Link to home
Start Free TrialLog in
Avatar of sternocera
sternocera

asked on

Getting PostgreSQL's C API libpq, to compile release *and* debug versions

I cannot get libpq,PostgreSQL's C API, to compile a debug version, though it will compile a release, so I've copied the release folder, renamed it debug and appended a "d" to each of the dlls/libs. This is a sleazy hack that I'd rather do without.

How can I build the debug? I've built the release in the standard way, "nmake /f win32.mak" as outlined in http://developer.postgresql.org/pgdocs/postgres/x19700.html .

Thanks Again,
Sternocera
ASKER CERTIFIED SOLUTION
Avatar of jkr
jkr
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of sternocera
sternocera

ASKER

JKR,

Here is the compiler output:


C:\postgresql-8.1.9\src>nmake /f win32.mak

Microsoft (R) Program Maintenance Utility Version 8.00.50727.42
Copyright (C) Microsoft Corporation.  All rights reserved.

      cd include
      if not exist pg_config.h copy pg_config.h.win32 pg_config.h
      cd ..
      cd interfaces\libpq
      nmake /f win32.mak

Microsoft (R) Program Maintenance Utility Version 8.00.50727.42
Copyright (C) Microsoft Corporation.  All rights reserved.

Building the Win32 static library...

      if not exist ".\Release/" mkdir ".\Release"
      cl.exe /nologo /W3 /GX /O2 /MD /I "..\..\include" /I. /D "FRONTEND" /D NDEBUG /D "WIN32" /D "_WINDOWS" /Fp".\Release\libpq.pch" /YX /Fo".\Release\\" /Fd".\Release\\" /FD /c  /D "HAVE_VSNPRINTF" /D "HAVE_STRDUP" "win32.c"
cl : Command line warning D9035 : option 'GX' has been deprecated and will be removed in a future release
cl : Command line warning D9036 : use 'EHsc' instead of 'GX'
cl : Command line warning D9002 : ignoring unknown option '/YX'
win32.c
c:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\errno.h(45) : warning C4005: 'EINTR' : macro redefinition
        c:\postgresql-8.1.9\src\interfaces\libpq\win32.h(21) : see previous definition of 'EINTR'
..\..\include\getaddrinfo.h(47) : warning C4005: 'WSATYPE_NOT_FOUND' : macro redefinition
        c:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\winerror.h(14991) : see previous definition of 'WSATYPE_NOT_FOUND'
win32.c(219) : warning C4996: 'strcpy' was declared deprecated
        Message: 'This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
win32.c(313) : warning C4996: 'sprintf' was declared deprecated
        c:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\stdio.h(345) : see declaration of 'sprintf'
        Message: 'This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
win32.c(320) : warning C4996: 'sprintf' was declared deprecated
        c:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\stdio.h(345) : see declaration of 'sprintf'
        Message: 'This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
      cl.exe @C:\DOCUME~1\User\LOCALS~1\Temp\nm102.tmp
cl : Command line warning D9035 : option 'GX' has been deprecated and will be removed in a future release
cl : Command line warning D9036 : use 'EHsc' instead of 'GX'
cl : Command line warning D9002 : ignoring unknown option '/YX'
getaddrinfo.c
..\..\include\getaddrinfo.h(47) : warning C4005: 'WSATYPE_NOT_FOUND' : macro redefinition
        c:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\winerror.h(14991) : see previous definition of 'WSATYPE_NOT_FOUND'
..\..\port\getaddrinfo.c(403) : warning C4996: '_snprintf' was declared deprecated
        c:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\stdio.h(339) : see declaration of '_snprintf'
        Message: 'This function or variable may be unsafe. Consider using _snprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
..\..\port\getaddrinfo.c(416) : warning C4996: '_snprintf' was declared deprecated
        c:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\stdio.h(339) : see declaration of '_snprintf'
        Message: 'This function or variable may be unsafe. Consider using _snprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
      cl.exe @C:\DOCUME~1\User\LOCALS~1\Temp\nm103.tmp
cl : Command line warning D9035 : option 'GX' has been deprecated and will be removed in a future release
cl : Command line warning D9036 : use 'EHsc' instead of 'GX'
cl : Command line warning D9002 : ignoring unknown option '/YX'
pgstrcasecmp.c
      cl.exe @C:\DOCUME~1\User\LOCALS~1\Temp\nm104.tmp
cl : Command line warning D9035 : option 'GX' has been deprecated and will be removed in a future release
cl : Command line warning D9036 : use 'EHsc' instead of 'GX'
cl : Command line warning D9002 : ignoring unknown option '/YX'
thread.c
..\..\port\thread.c(84) : warning C4996: 'strncpy' was declared deprecated
        c:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\string.h(156) : see declaration of 'strncpy'
        Message: 'This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
..\..\port\thread.c(84) : warning C4996: 'strerror' was declared deprecated
        c:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\string.h(125) : see declaration of 'strerror'
        Message: 'This function or variable may be unsafe. Consider using strerror_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
      cl.exe @C:\DOCUME~1\User\LOCALS~1\Temp\nm105.tmp
cl : Command line warning D9035 : option 'GX' has been deprecated and will be removed in a future release
cl : Command line warning D9036 : use 'EHsc' instead of 'GX'
cl : Command line warning D9002 : ignoring unknown option '/YX'
inet_aton.c
      cl.exe @C:\DOCUME~1\User\LOCALS~1\Temp\nm106.tmp
cl : Command line warning D9035 : option 'GX' has been deprecated and will be removed in a future release
cl : Command line warning D9036 : use 'EHsc' instead of 'GX'
cl : Command line warning D9002 : ignoring unknown option '/YX'
crypt.c
      cl.exe @C:\DOCUME~1\User\LOCALS~1\Temp\nm107.tmp
cl : Command line warning D9035 : option 'GX' has been deprecated and will be removed in a future release
cl : Command line warning D9036 : use 'EHsc' instead of 'GX'
cl : Command line warning D9002 : ignoring unknown option '/YX'
noblock.c
      cl.exe @C:\DOCUME~1\User\LOCALS~1\Temp\nm108.tmp
cl : Command line warning D9035 : option 'GX' has been deprecated and will be removed in a future release
cl : Command line warning D9036 : use 'EHsc' instead of 'GX'
cl : Command line warning D9002 : ignoring unknown option '/YX'
md5.c
..\..\backend\libpq\md5.c(327) : warning C4996: 'strcpy' was declared deprecated
        Message: 'This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
..\..\backend\libpq\md5.c(330) : warning C4996: 'strcpy' was declared deprecated
        Message: 'This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
      cl.exe @C:\DOCUME~1\User\LOCALS~1\Temp\nm109.tmp
cl : Command line warning D9035 : option 'GX' has been deprecated and will be removed in a future release
cl : Command line warning D9036 : use 'EHsc' instead of 'GX'
cl : Command line warning D9002 : ignoring unknown option '/YX'
ip.c
..\..\include\getaddrinfo.h(47) : warning C4005: 'WSATYPE_NOT_FOUND' : macro redefinition
        c:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\winerror.h(14991) : see previous definition of 'WSATYPE_NOT_FOUND'
..\..\backend\libpq\ip.c(181) : warning C4996: 'strncpy' was declared deprecated
        c:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\string.h(156) : see declaration of 'strncpy'
        Message: 'This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
..\..\backend\libpq\ip.c(183) : warning C4996: 'strncpy' was declared deprecated
        c:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\string.h(156) : see declaration of 'strncpy'
        Message: 'This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
      cl.exe /nologo /W3 /GX /O2 /MD /I "..\..\include" /I. /D "FRONTEND" /D NDEBUG /D "WIN32" /D "_WINDOWS" /Fp".\Release\libpq.pch" /YX /Fo".\Release\\" /Fd".\Release\\" /FD /c  /D "HAVE_VSNPRINTF" /D "HAVE_STRDUP" "fe-auth.c"
cl : Command line warning D9035 : option 'GX' has been deprecated and will be removed in a future release
cl : Command line warning D9036 : use 'EHsc' instead of 'GX'
cl : Command line warning D9002 : ignoring unknown option '/YX'
fe-auth.c
..\..\include\getaddrinfo.h(47) : warning C4005: 'WSATYPE_NOT_FOUND' : macro redefinition
        c:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\winerror.h(14991) : see previous definition of 'WSATYPE_NOT_FOUND'
fe-auth.c(374) : warning C4996: '_snprintf' was declared deprecated
        c:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\stdio.h(339) : see declaration of '_snprintf'
        Message: 'This function or variable may be unsafe. Consider using _snprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
fe-auth.c(420) : warning C4996: 'strncpy' was declared deprecated
        c:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\string.h(156) : see declaration of 'strncpy'
        Message: 'This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
fe-auth.c(460) : warning C4996: '_snprintf' was declared deprecated
        c:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\stdio.h(339) : see declaration of '_snprintf'
        Message: 'This function or variable may be unsafe. Consider using _snprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
fe-auth.c(477) : warning C4996: '_snprintf' was declared deprecated
        c:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\stdio.h(339) : see declaration of '_snprintf'
        Message: 'This function or variable may be unsafe. Consider using _snprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
fe-auth.c(487) : warning C4996: '_snprintf' was declared deprecated
        c:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\stdio.h(339) : see declaration of '_snprintf'
        Message: 'This function or variable may be unsafe. Consider using _snprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
fe-auth.c(493) : warning C4996: '_snprintf' was declared deprecated
        c:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\stdio.h(339) : see declaration of '_snprintf'
        Message: 'This function or variable may be unsafe. Consider using _snprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
fe-auth.c(505) : warning C4996: '_snprintf' was declared deprecated
        c:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\stdio.h(339) : see declaration of '_snprintf'
        Message: 'This function or variable may be unsafe. Consider using _snprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
fe-auth.c(568) : warning C4996: 'strdup' was declared deprecated
        c:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\string.h(205) : see declaration of 'strdup'
        Message: 'The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _strdup. See online help for details.'
      cl.exe /nologo /W3 /GX /O2 /MD /I "..\..\include" /I. /D "FRONTEND" /D NDEBUG /D "WIN32" /D "_WINDOWS" /Fp".\Release\libpq.pch" /YX /Fo".\Release\\" /Fd".\Release\\" /FD /c  /D "HAVE_VSNPRINTF" /D "HAVE_STRDUP" "fe-protocol2.c"
cl : Command line warning D9035 : option 'GX' has been deprecated and will be removed in a future release
cl : Command line warning D9036 : use 'EHsc' instead of 'GX'
cl : Command line warning D9002 : ignoring unknown option '/YX'
fe-protocol2.c
..\..\include\getaddrinfo.h(47) : warning C4005: 'WSATYPE_NOT_FOUND' : macro redefinition
        c:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\winerror.h(14991) : see previous definition of 'WSATYPE_NOT_FOUND'
fe-protocol2.c(118) : warning C4996: 'getenv' was declared deprecated
        c:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\stdlib.h(483) : see declaration of 'getenv'
        Message: 'This function or variable may be unsafe. Consider using _dupenv_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
fe-protocol2.c(122) : warning C4996: 'sprintf' was declared deprecated
        c:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\stdio.h(345) : see declaration of 'sprintf'
        Message: 'This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
fe-protocol2.c(125) : warning C4996: 'sprintf' was declared deprecated
        c:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\stdio.h(345) : see declaration of 'sprintf'
        Message: 'This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
fe-protocol2.c(309) : warning C4996: 'getenv' was declared deprecated
        c:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\stdlib.h(483) : see declaration of 'getenv'
        Message: 'This function or variable may be unsafe. Consider using _dupenv_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
fe-protocol2.c(446) : warning C4996: 'strncpy' was declared deprecated
        c:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\string.h(156) : see declaration of 'strncpy'
        Message: 'This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
fe-protocol2.c(958) : warning C4996: 'strcpy' was declared deprecated
        Message: 'This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
fe-protocol2.c(1436) : warning C4996: 'strncpy' was declared deprecated
        c:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\string.h(156) : see declaration of 'strncpy'
        Message: 'This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
fe-protocol2.c(1437) : warning C4996: 'strncpy' was declared deprecated
        c:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\string.h(156) : see declaration of 'strncpy'
        Message: 'This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
fe-protocol2.c(1438) : warning C4996: 'strncpy' was declared deprecated
        c:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\string.h(156) : see declaration of 'strncpy'
        Message: 'This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
fe-protocol2.c(1441) : warning C4996: 'strncpy' was declared deprecated
        c:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\string.h(156) : see declaration of 'strncpy'
        Message: 'This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
      cl.exe /nologo /W3 /GX /O2 /MD /I "..\..\include" /I. /D "FRONTEND" /D NDEBUG /D "WIN32" /D "_WINDOWS" /Fp".\Release\libpq.pch" /YX /Fo".\Release\\" /Fd".\Release\\" /FD /c  /D "HAVE_VSNPRINTF" /D "HAVE_STRDUP" "fe-protocol3.c"
cl : Command line warning D9035 : option 'GX' has been deprecated and will be removed in a future release
cl : Command line warning D9036 : use 'EHsc' instead of 'GX'
cl : Command line warning D9002 : ignoring unknown option '/YX'
fe-protocol3.c
..\..\include\getaddrinfo.h(47) : warning C4005: 'WSATYPE_NOT_FOUND' : macro redefinition
        c:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\winerror.h(14991) : see previous definition of 'WSATYPE_NOT_FOUND'
fe-protocol3.c(207) : warning C4996: 'strncpy' was declared deprecated
        c:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\string.h(156) : see declaration of 'strncpy'
        Message: 'This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
fe-protocol3.c(800) : warning C4996: 'strdup' was declared deprecated
        c:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\string.h(205) : see declaration of 'strdup'
        Message: 'The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _strdup. See online help for details.'
fe-protocol3.c(820) : warning C4996: 'strcpy' was declared deprecated
        Message: 'This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
fe-protocol3.c(822) : warning C4996: 'strcpy' was declared deprecated
        Message: 'This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
fe-protocol3.c(1038) : warning C4996: 'strcpy' was declared deprecated
        Message: 'This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
fe-protocol3.c(1474) : warning C4996: 'strcpy' was declared deprecated
        Message: 'This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
fe-protocol3.c(1477) : warning C4996: 'strcpy' was declared deprecated
        Message: 'This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
fe-protocol3.c(1483) : warning C4996: 'strcpy' was declared deprecated
        Message: 'This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
fe-protocol3.c(1486) : warning C4996: 'strcpy' was declared deprecated
        Message: 'This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
fe-protocol3.c(1492) : warning C4996: 'strcpy' was declared deprecated
        Message: 'This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
fe-protocol3.c(1495) : warning C4996: 'strcpy' was declared deprecated
        Message: 'This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
fe-protocol3.c(1504) : warning C4996: 'getenv' was declared deprecated
        c:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\stdlib.h(483) : see declaration of 'getenv'
        Message: 'This function or variable may be unsafe. Consider using _dupenv_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
fe-protocol3.c(1509) : warning C4996: 'strcpy' was declared deprecated
        Message: 'This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
fe-protocol3.c(1512) : warning C4996: 'strcpy' was declared deprecated
        Message: 'This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
      cl.exe /nologo /W3 /GX /O2 /MD /I "..\..\include" /I. /D "FRONTEND" /D NDEBUG /D "WIN32" /D "_WINDOWS" /Fp".\Release\libpq.pch" /YX /Fo".\Release\\" /Fd".\Release\\" /FD /c  /D "HAVE_VSNPRINTF" /D "HAVE_STRDUP" "fe-connect.c"
cl : Command line warning D9035 : option 'GX' has been deprecated and will be removed in a future release
cl : Command line warning D9036 : use 'EHsc' instead of 'GX'
cl : Command line warning D9002 : ignoring unknown option '/YX'
fe-connect.c
..\..\include\getaddrinfo.h(47) : warning C4005: 'WSATYPE_NOT_FOUND' : macro redefinition
        c:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\winerror.h(14991) : see previous definition of 'WSATYPE_NOT_FOUND'
fe-connect.c(379) : warning C4996: 'strdup' was declared deprecated
        c:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\string.h(205) : see declaration of 'strdup'
        Message: 'The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _strdup. See online help for details.'
fe-connect.c(381) : warning C4996: 'strdup' was declared deprecated
        c:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\string.h(205) : see declaration of 'strdup'
        Message: 'The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _strdup. See online help for details.'
fe-connect.c(383) : warning C4996: 'strdup' was declared deprecated
        c:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\string.h(205) : see declaration of 'strdup'
        Message: 'The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _strdup. See online help for details.'
fe-connect.c(385) : warning C4996: 'strdup' was declared deprecated
        c:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\string.h(205) : see declaration of 'strdup'
        Message: 'The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _strdup. See online help for details.'
fe-connect.c(387) : warning C4996: 'strdup' was declared deprecated
        c:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\string.h(205) : see declaration of 'strdup'
        Message: 'The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _strdup. See online help for details.'
fe-connect.c(389) : warning C4996: 'strdup' was declared deprecated
        c:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\string.h(205) : see declaration of 'strdup'
        Message: 'The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _strdup. See online help for details.'
fe-connect.c(391) : warning C4996: 'strdup' was declared deprecated
        c:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\string.h(205) : see declaration of 'strdup'
        Message: 'The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _strdup. See online help for details.'
fe-connect.c(393) : warning C4996: 'strdup' was declared deprecated
        c:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\string.h(205) : see declaration of 'strdup'
        Message: 'The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _strdup. See online help for details.'
fe-connect.c(395) : warning C4996: 'strdup' was declared deprecated
        c:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\string.h(205) : see declaration of 'strdup'
        Message: 'The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _strdup. See online help for details.'
fe-connect.c(397) : warning C4996: 'strdup' was declared deprecated
        c:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\string.h(205) : see declaration of 'strdup'
        Message: 'The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _strdup. See online help for details.'
fe-connect.c(440) : warning C4996: 'strdup' was declared deprecated
        c:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\string.h(205) : see declaration of 'strdup'
        Message: 'The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _strdup. See online help for details.'
fe-connect.c(453) : warning C4996: 'strdup' was declared deprecated
        c:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\string.h(205) : see declaration of 'strdup'
        Message: 'The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _strdup. See online help for details.'
fe-connect.c(506) : warning C4996: 'strdup' was declared deprecated
        c:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\string.h(205) : see declaration of 'strdup'
        Message: 'The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _strdup. See online help for details.'
fe-connect.c(578) : warning C4996: 'strdup' was declared deprecated
        c:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\string.h(205) : see declaration of 'strdup'
        Message: 'The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _strdup. See online help for details.'
fe-connect.c(585) : warning C4996: 'strdup' was declared deprecated
        c:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\string.h(205) : see declaration of 'strdup'
        Message: 'The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _strdup. See online help for details.'
fe-connect.c(592) : warning C4996: 'strdup' was declared deprecated
        c:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\string.h(205) : see declaration of 'strdup'
        Message: 'The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _strdup. See online help for details.'
fe-connect.c(599) : warning C4996: 'strdup' was declared deprecated
        c:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\string.h(205) : see declaration of 'strdup'
        Message: 'The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _strdup. See online help for details.'
fe-connect.c(606) : warning C4996: 'strdup' was declared deprecated
        c:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\string.h(205) : see declaration of 'strdup'
        Message: 'The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _strdup. See online help for details.'
fe-connect.c(613) : warning C4996: 'strdup' was declared deprecated
        c:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\string.h(205) : see declaration of 'strdup'
        Message: 'The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _strdup. See online help for details.'
fe-connect.c(620) : warning C4996: 'strdup' was declared deprecated
        c:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\string.h(205) : see declaration of 'strdup'
        Message: 'The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _strdup. See online help for details.'
fe-connect.c(750) : warning C4996: '_snprintf' was declared deprecated
        c:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\stdio.h(339) : see declaration of '_snprintf'
        Message: 'This function or variable may be unsafe. Consider using _snprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
fe-connect.c(2159) : warning C4996: 'strncpy' was declared deprecated
        c:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\string.h(156) : see declaration of 'strncpy'
        Message: 'This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
fe-connect.c(2169) : warning C4996: 'strncpy' was declared deprecated
        c:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\string.h(156) : see declaration of 'strncpy'
        Message: 'This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
fe-connect.c(2190) : warning C4996: 'strncpy' was declared deprecated
        c:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\string.h(156) : see declaration of 'strncpy'
        Message: 'This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
fe-connect.c(2225) : warning C4996: 'strncat' was declared deprecated
        c:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\string.h(143) : see declaration of 'strncat'
        Message: 'This function or variable may be unsafe. Consider using strncat_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
fe-connect.c(2226) : warning C4996: 'strcat' was declared deprecated
        Message: 'This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
fe-connect.c(2248) : warning C4996: 'strncpy' was declared deprecated
        c:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\string.h(156) : see declaration of 'strncpy'
        Message: 'This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
fe-connect.c(2281) : warning C4996: 'strncpy' was declared deprecated
        c:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\string.h(156) : see declaration of 'strncpy'
        Message: 'This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
fe-connect.c(2354) : warning C4996: 'getenv' was declared deprecated
        c:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\stdlib.h(483) : see declaration of 'getenv'
        Message: 'This function or variable may be unsafe. Consider using _dupenv_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
fe-connect.c(2361) : warning C4996: '_snprintf' was declared deprecated
        c:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\stdio.h(339) : see declaration of '_snprintf'
        Message: 'This function or variable may be unsafe. Consider using _snprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
fe-connect.c(2369) : warning C4996: 'fopen' was declared deprecated
        c:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\stdio.h(234) : see declaration of 'fopen'
        Message: 'This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
fe-connect.c(2454) : warning C4996: 'strdup' was declared deprecated
        c:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\string.h(205) : see declaration of 'strdup'
        Message: 'The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _strdup. See online help for details.'
fe-connect.c(2511) : warning C4996: 'strdup' was declared deprecated
        c:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\string.h(205) : see declaration of 'strdup'
        Message: 'The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _strdup. See online help for details.'
fe-connect.c(2647) : warning C4996: 'strdup' was declared deprecated
        c:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\string.h(205) : see declaration of 'strdup'
        Message: 'The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _strdup. See online help for details.'
fe-connect.c(2685) : warning C4996: 'getenv' was declared deprecated
        c:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\stdlib.h(483) : see declaration of 'getenv'
        Message: 'This function or variable may be unsafe. Consider using _dupenv_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
fe-connect.c(2687) : warning C4996: 'strdup' was declared deprecated
        c:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\string.h(205) : see declaration of 'strdup'
        Message: 'The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _strdup. See online help for details.'
fe-connect.c(2705) : warning C4996: 'strdup' was declared deprecated
        c:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\string.h(205) : see declaration of 'strdup'
        Message: 'The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _strdup. See online help for details.'
fe-connect.c(2926) : warning C4996: 'sprintf' was declared deprecated
        c:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\stdio.h(345) : see declaration of 'sprintf'
        Message: 'This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
fe-connect.c(3109) : warning C4996: 'getenv' was declared deprecated
        c:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\stdlib.h(483) : see declaration of 'getenv'
        Message: 'This function or variable may be unsafe. Consider using _dupenv_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
fe-connect.c(3111) : warning C4996: 'strncpy' was declared deprecated
        c:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\string.h(156) : see declaration of 'strncpy'
        Message: 'This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
fe-connect.c(3118) : warning C4996: '_snprintf' was declared deprecated
        c:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\stdio.h(339) : see declaration of '_snprintf'
        Message: 'This function or variable may be unsafe. Consider using _snprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
fe-connect.c(3146) : warning C4996: 'fopen' was declared deprecated
        c:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\stdio.h(234) : see declaration of 'fopen'
        Message: 'This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
fe-connect.c(3171) : warning C4996: 'strdup' was declared deprecated
        c:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\string.h(205) : see declaration of 'strdup'
        Message: 'The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _strdup. See online help for details.'
fe-connect.c(3210) : warning C4996: '_snprintf' was declared deprecated
        c:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\stdio.h(339) : see declaration of '_snprintf'
        Message: 'This function or variable may be unsafe. Consider using _snprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
      cl.exe /nologo /W3 /GX /O2 /MD /I "..\..\include" /I. /D "FRONTEND" /D NDEBUG /D "WIN32" /D "_WINDOWS" /Fp".\Release\libpq.pch" /YX /Fo".\Release\\" /Fd".\Release\\" /FD /c  /D "HAVE_VSNPRINTF" /D "HAVE_STRDUP" "fe-exec.c"
cl : Command line warning D9035 : option 'GX' has been deprecated and will be removed in a future release
cl : Command line warning D9036 : use 'EHsc' instead of 'GX'
cl : Command line warning D9002 : ignoring unknown option '/YX'
fe-exec.c
..\..\include\getaddrinfo.h(47) : warning C4005: 'WSATYPE_NOT_FOUND' : macro redefinition
        c:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\winerror.h(14991) : see previous definition of 'WSATYPE_NOT_FOUND'
fe-exec.c(307) : warning C4996: 'strcpy' was declared deprecated
        Message: 'This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
fe-exec.c(474) : warning C4996: '_vsnprintf' was declared deprecated
        c:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\stdio.h(333) : see declaration of '_vsnprintf'
        Message: 'This function or variable may be unsafe. Consider using vsnprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
fe-exec.c(498) : warning C4996: 'sprintf' was declared deprecated
        c:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\stdio.h(345) : see declaration of 'sprintf'
        Message: 'This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
fe-exec.c(563) : warning C4996: 'strcpy' was declared deprecated
        Message: 'This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
fe-exec.c(610) : warning C4996: 'strcpy' was declared deprecated
        Message: 'This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
fe-exec.c(613) : warning C4996: 'strcpy' was declared deprecated
        Message: 'This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
fe-exec.c(642) : warning C4996: 'sscanf' was declared deprecated
        c:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\stdio.h(311) : see declaration of 'sscanf'
        Message: 'This function or variable may be unsafe. Consider using sscanf_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
fe-exec.c(2009) : warning C4996: 'strdup' was declared deprecated
        c:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\string.h(205) : see declaration of 'strdup'
        Message: 'The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _strdup. See online help for details.'
fe-exec.c(2153) : warning C4996: 'strncpy' was declared deprecated
        c:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\string.h(156) : see declaration of 'strncpy'
        Message: 'This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
fe-exec.c(2533) : warning C4996: 'sprintf' was declared deprecated
        c:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\stdio.h(345) : see declaration of 'sprintf'
        Message: 'This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
      cl.exe /nologo /W3 /GX /O2 /MD /I "..\..\include" /I. /D "FRONTEND" /D NDEBUG /D "WIN32" /D "_WINDOWS" /Fp".\Release\libpq.pch" /YX /Fo".\Release\\" /Fd".\Release\\" /FD /c  /D "HAVE_VSNPRINTF" /D "HAVE_STRDUP" "fe-lobj.c"
cl : Command line warning D9035 : option 'GX' has been deprecated and will be removed in a future release
cl : Command line warning D9036 : use 'EHsc' instead of 'GX'
cl : Command line warning D9002 : ignoring unknown option '/YX'
fe-lobj.c
..\..\include\getaddrinfo.h(47) : warning C4005: 'WSATYPE_NOT_FOUND' : macro redefinition
        c:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\winerror.h(14991) : see previous definition of 'WSATYPE_NOT_FOUND'
fe-lobj.c(450) : warning C4996: 'open' was declared deprecated
        c:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\io.h(328) : see declaration of 'open'
        Message: 'The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _open. See online help for details.'
fe-lobj.c(535) : warning C4996: 'open' was declared deprecated
        c:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\io.h(328) : see declaration of 'open'
        Message: 'The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _open. See online help for details.'
      cl.exe /nologo /W3 /GX /O2 /MD /I "..\..\include" /I. /D "FRONTEND" /D NDEBUG /D "WIN32" /D "_WINDOWS" /Fp".\Release\libpq.pch" /YX /Fo".\Release\\" /Fd".\Release\\" /FD /c  /D "HAVE_VSNPRINTF" /D "HAVE_STRDUP" "fe-misc.c"
cl : Command line warning D9035 : option 'GX' has been deprecated and will be removed in a future release
cl : Command line warning D9036 : use 'EHsc' instead of 'GX'
cl : Command line warning D9002 : ignoring unknown option '/YX'
fe-misc.c
..\..\include\getaddrinfo.h(47) : warning C4005: 'WSATYPE_NOT_FOUND' : macro redefinition
        c:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\winerror.h(14991) : see previous definition of 'WSATYPE_NOT_FOUND'
fe-misc.c(1068) : warning C4244: '=' : conversion from 'time_t' to 'long', possible loss of data
fe-misc.c(1115) : warning C4996: 'getenv' was declared deprecated
        c:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\stdlib.h(483) : see declaration of 'getenv'
        Message: 'This function or variable may be unsafe. Consider using _dupenv_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
      cl.exe /nologo /W3 /GX /O2 /MD /I "..\..\include" /I. /D "FRONTEND" /D NDEBUG /D "WIN32" /D "_WINDOWS" /Fp".\Release\libpq.pch" /YX /Fo".\Release\\" /Fd".\Release\\" /FD /c  /D "HAVE_VSNPRINTF" /D "HAVE_STRDUP" "fe-print.c"
cl : Command line warning D9035 : option 'GX' has been deprecated and will be removed in a future release
cl : Command line warning D9036 : use 'EHsc' instead of 'GX'
cl : Command line warning D9002 : ignoring unknown option '/YX'
fe-print.c
..\..\include\getaddrinfo.h(47) : warning C4005: 'WSATYPE_NOT_FOUND' : macro redefinition
        c:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\winerror.h(14991) : see previous definition of 'WSATYPE_NOT_FOUND'
fe-print.c(174) : warning C4996: 'getenv' was declared deprecated
        c:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\stdlib.h(483) : see declaration of 'getenv'
        Message: 'This function or variable may be unsafe. Consider using _dupenv_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
fe-print.c(401) : warning C4996: 'strcpy' was declared deprecated
        Message: 'This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
fe-print.c(696) : warning C4996: 'sprintf' was declared deprecated
        c:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\stdio.h(345) : see declaration of 'sprintf'
        Message: 'This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
fe-print.c(698) : warning C4996: 'sprintf' was declared deprecated
        c:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\stdio.h(345) : see declaration of 'sprintf'
        Message: 'This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
      cl.exe /nologo /W3 /GX /O2 /MD /I "..\..\include" /I. /D "FRONTEND" /D NDEBUG /D "WIN32" /D "_WINDOWS" /Fp".\Release\libpq.pch" /YX /Fo".\Release\\" /Fd".\Release\\" /FD /c  /D "HAVE_VSNPRINTF" /D "HAVE_STRDUP" "fe-secure.c"
cl : Command line warning D9035 : option 'GX' has been deprecated and will be removed in a future release
cl : Command line warning D9036 : use 'EHsc' instead of 'GX'
cl : Command line warning D9002 : ignoring unknown option '/YX'
fe-secure.c
..\..\include\getaddrinfo.h(47) : warning C4005: 'WSATYPE_NOT_FOUND' : macro redefinition
        c:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\winerror.h(14991) : see previous definition of 'WSATYPE_NOT_FOUND'
      cl.exe /nologo /W3 /GX /O2 /MD /I "..\..\include" /I. /D "FRONTEND" /D NDEBUG /D "WIN32" /D "_WINDOWS" /Fp".\Release\libpq.pch" /YX /Fo".\Release\\" /Fd".\Release\\" /FD /c  /D "HAVE_VSNPRINTF" /D "HAVE_STRDUP" "pqexpbuffer.c"
cl : Command line warning D9035 : option 'GX' has been deprecated and will be removed in a future release
cl : Command line warning D9036 : use 'EHsc' instead of 'GX'
cl : Command line warning D9002 : ignoring unknown option '/YX'
pqexpbuffer.c
pqexpbuffer.c(207) : warning C4996: '_vsnprintf' was declared deprecated
        c:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\stdio.h(333) : see declaration of '_vsnprintf'
        Message: 'This function or variable may be unsafe. Consider using vsnprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
pqexpbuffer.c(255) : warning C4996: '_vsnprintf' was declared deprecated
        c:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\stdio.h(333) : see declaration of '_vsnprintf'
        Message: 'This function or variable may be unsafe. Consider using vsnprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
      cl.exe /nologo /W3 /GX /O2 /MD /I "..\..\include" /I. /D "FRONTEND" /D NDEBUG /D "WIN32" /D "_WINDOWS" /Fp".\Release\libpq.pch" /YX /Fo".\Release\\" /Fd".\Release\\" /FD /c  /D "HAVE_VSNPRINTF" /D "HAVE_STRDUP" "pqsignal.c"
cl : Command line warning D9035 : option 'GX' has been deprecated and will be removed in a future release
cl : Command line warning D9036 : use 'EHsc' instead of 'GX'
cl : Command line warning D9002 : ignoring unknown option '/YX'
pqsignal.c
      cl.exe @C:\DOCUME~1\User\LOCALS~1\Temp\nm10A.tmp
cl : Command line warning D9035 : option 'GX' has been deprecated and will be removed in a future release
cl : Command line warning D9036 : use 'EHsc' instead of 'GX'
cl : Command line warning D9002 : ignoring unknown option '/YX'
wchar.c
      cl.exe @C:\DOCUME~1\User\LOCALS~1\Temp\nm10B.tmp
cl : Command line warning D9035 : option 'GX' has been deprecated and will be removed in a future release
cl : Command line warning D9036 : use 'EHsc' instead of 'GX'
cl : Command line warning D9002 : ignoring unknown option '/YX'
encnames.c
      cl.exe /nologo /W3 /GX /O2 /MD /I "..\..\include" /I. /D "FRONTEND" /D NDEBUG /D "WIN32" /D "_WINDOWS" /Fp".\Release\libpq.pch" /YX /Fo".\Release\\" /Fd".\Release\\" /FD /c  /D "HAVE_VSNPRINTF" /D "HAVE_STRDUP" "pthread-win32.c"
cl : Command line warning D9035 : option 'GX' has been deprecated and will be removed in a future release
cl : Command line warning D9036 : use 'EHsc' instead of 'GX'
cl : Command line warning D9002 : ignoring unknown option '/YX'
pthread-win32.c
      link.exe -lib @C:\DOCUME~1\User\LOCALS~1\Temp\nm10C.tmp
      cl.exe /nologo /W3 /GX /O2 /MD /I "..\..\include" /I. /D "FRONTEND" /D NDEBUG /D "WIN32" /D "_WINDOWS" /Fp".\Release\libpq.pch" /YX /Fo".\Release\\" /Fd".\Release\\" /FD /c  /D "HAVE_VSNPRINTF" /D "HAVE_STRDUP" "libpqdll.c"
cl : Command line warning D9035 : option 'GX' has been deprecated and will be removed in a future release
cl : Command line warning D9036 : use 'EHsc' instead of 'GX'
cl : Command line warning D9002 : ignoring unknown option '/YX'
libpqdll.c
      rc.exe /l 0x409 /fo".\Release\libpq.res" libpq.rc
      link.exe @C:\DOCUME~1\User\LOCALS~1\Temp\nm10D.tmp
libpqdll.def(3) : warning LNK4017: DESCRIPTION statement not supported for the target platform; ignored
   Creating library .\Release\libpqdll.lib and object .\Release\libpqdll.exp
      cd ..\..\bin\psql
      nmake /f win32.mak

Microsoft (R) Program Maintenance Utility Version 8.00.50727.42
Copyright (C) Microsoft Corporation.  All rights reserved.

      link.exe @C:\DOCUME~1\User\LOCALS~1\Temp\nm110.tmp
      cd ..\..\bin\pg_config
      nmake /f win32.mak

Microsoft (R) Program Maintenance Utility Version 8.00.50727.42
Copyright (C) Microsoft Corporation.  All rights reserved.

      cl.exe @C:\DOCUME~1\User\LOCALS~1\Temp\nm112.tmp
cl : Command line warning D9035 : option 'GX' has been deprecated and will be removed in a future release
cl : Command line warning D9036 : use 'EHsc' instead of 'GX'
cl : Command line warning D9002 : ignoring unknown option '/YX'
pg_config.c
c:\postgresql-8.1.9\src\include\utils/elog.h(105) : error C2365: 'errcode' : redefinition; previous definition was 'typedef'
        c:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\crtdefs.h(506) : see declaration of 'errcode'
pg_config.c(78) : warning C4996: 'strcpy' was declared deprecated
        Message: 'This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
NMAKE : fatal error U1077: '"c:\Program Files\Microsoft Visual Studio 8\VC\BIN\cl.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"c:\Program Files\Microsoft Visual Studio 8\VC\BIN\nmake.EXE"' : return code '0x2'
Stop.

OK, first add

_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES
_CRT_SECURE_CPP_OVERLOAD_SECURE_NAMES
_CRT_SECURE_NO_DEPRECATE
_CRT_SECURE_NO_WARNINGS

to the predefined symbols to shed out the warnings, then we can address the rest of the messages that remain.
JKR,

It's not very clear where I should put those pre-defined symbols - I've never strayed from the IDE before,

Thanks
In your makefile, where e.g.

/D "FRONTEND" /D NDEBUG /D "WIN32"

is defined - exactly the same way, i.e.

/D "_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES"
JKR,

It is recommended that I compile with mingw/msys. I think this is the way to go. thanks though,
Regards,
Sternocera
Giving up before getting started? There are just two errors in the above...
jkr,

Does it not stand to reason that if it was something trivial, that the developers themselves would have fixed it? After all, this makefile is intended specifically to be used with visual studio. It's not possible to compile postgres itself using visual studio - mingw/msys must be used. Mingw/msys or cygwin are recommended for compiling libpq on windows.  Provided I can use the dll file generated by mingw/msys in my visual studio application,  and use the libpqxx c++ wrapper with that dll, I'm happy.

I can do this, right?

Thanks
Natively compile it - you don't NEED Unix subsystem.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I finally got it to build a debug. Apparently, it was necessary to use a DEBUG=1 flag, whereas I expected to be able to build debug and release builds together without such a flag. I was mis-directed by some documentation for libpqxx, the libpq c++ wrapper.

Thanks all the same.