[GENERAL] Compiling libpgtcl.dll - Mailing list pgsql-cygwin

From Fernando Schapachnik
Subject [GENERAL] Compiling libpgtcl.dll
Date
Msg-id 20020417122315.H19474@ns1.via-net-works.net.ar
Whole thread Raw
List pgsql-cygwin
This is a repost. Hope to get some answer here, because I got none in
-general or -interfaces and really need it working.

Hello:
    Is there some document describing how to compile
libpgtcl.dll? I've tried nmake /f win32.mak (w2k, MSVC++ 6.0) and
fails misserably:

No configuration specified. Defaulting to libpgtcl - Win32 Release.
        link.exe @C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\nma01160.
MSVCRT.lib(MSVCRT.dll) : error LNK2005: _free already defined in
LIBCMT.lib(free.obj)
MSVCRT.lib(MSVCRT.dll) : error LNK2005: _getenv already defined in
LIBCMT.lib(getenv.obj)
MSVCRT.lib(MSVCRT.dll) : error LNK2005: _atoi already defined in
LIBCMT.lib(atox.obj)
MSVCRT.lib(MSVCRT.dll) : error LNK2005: _memmove already defined in
LIBCMT.lib(memmove.obj)
MSVCRT.lib(MSVCRT.dll) : error LNK2005: _strncpy already defined in
LIBCMT.lib(strncpy.obj)
MSVCRT.lib(MSVCRT.dll) : error LNK2005: _sprintf already defined in
LIBCMT.lib(sprintf.obj)
[...]
   Creating library .\Release\libpgtcl.lib and object
.\Release\libpgtcl.exp
LINK : warning LNK4098: defaultlib "MSVCRT" conflicts with use of
other libs; use /NODEFAULTLIB:library
libpq.lib(fe-connect.obj) : error LNK2001: unresolved external symbol
_closesocket@4
libpq.lib(fe-misc.obj) : error LNK2001: unresolved external symbol
_closesocket@4
libpq.lib(fe-connect.obj) : error LNK2001: unresolved external symbol
_connect@12
[...]
.\Release\libpgtcl.dll : fatal error LNK1120: 19 unresolved externals


    Any ideas?

    Thanks in advance.

Fernando P. Schapachnik
fschapachnik@vianetworks.com.ar

pgsql-cygwin by date:

Previous
From: "eyou321"
Date:
Subject: ADV:Harvest lots of Target Email address quickly
Next
From: Jason Tishler
Date:
Subject: Re: Cygwin-Postgres-IpcMemoryCreate