Link errors

From: Igor Korot <ikorot01(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Link errors
Date: 2017-05-04 23:30:46
Message-ID: CA+FnnTwP7gaY-fQV+q9CgO3EPjgo_bzPWsqBXMm7DQ_YBaKiOw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,
[code]
1> Creating library vc_mswuddll\postgres_dll.lib and object
vc_mswuddll\postgres_dll.exp
1>libpqd.lib(fe-connect.obj) : error LNK2019: unresolved external
symbol __imp__WSAIoctl(at)36 referenced in function _setKeepalivesWin32
1>libpqd.lib(ip.obj) : error LNK2001: unresolved external symbol
__imp__WSAIoctl(at)36
1>libpqd.lib(fe-connect.obj) : error LNK2019: unresolved external
symbol __imp__DeleteSecurityContext(at)4 referenced in function
_closePGconn
1>libpqd.lib(fe-connect.obj) : error LNK2019: unresolved external
symbol __imp__FreeCredentialsHandle(at)4 referenced in function
_closePGconn
1>libpqd.lib(fe-auth.obj) : error LNK2019: unresolved external symbol
_FreeContextBuffer(at)4 referenced in function _pg_SSPI_continue
1>libpqd.lib(fe-auth.obj) : error LNK2019: unresolved external symbol
_InitializeSecurityContextA(at)48 referenced in function
_pg_SSPI_continue
1>libpqd.lib(fe-auth.obj) : error LNK2019: unresolved external symbol
_AcquireCredentialsHandleA(at)36 referenced in function _pg_SSPI_startup
1>libpqd.lib(ip.obj) : error LNK2019: unresolved external symbol
__imp__WSASocketA(at)24 referenced in function _pg_foreach_ifaddr
1>..\dbhandler\vc_mswuddll\postgres_dll.dll : fatal error LNK1120: 7
unresolved externals

[/code]

And I'm linking with following libraries:

kernel32.lib;user32.lib;gdi32.lib;comdlg32.lib;winspool.lib;winmm.lib;shell32.lib;shlwapi.lib;comctl32.lib;ole32.lib;oleaut32.lib;uuid.lib;rpcrt4.lib;advapi32.lib;version.lib;wsock32.lib;wininet.lib;%(

What am I missing? I am linking with wsock32.lib...

Thank you.

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Peter Eisentraut 2017-05-05 01:57:55 Re: PQerrorMessage documentation
Previous Message Alan Hodgson 2017-05-04 23:02:19 Re: Caching and Blobs in PG? Was: Can PG replace redis, amqp, s3 in the future?