public inbox for pgsql-general@postgresql.org
help / color / mirror / Atom feedFrom: Igor Korot <ikorot01@gmail.com>
To: pgsql-generallists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Problem linking with Release library
Date: Thu, 7 May 2026 23:36:19 -0700
Message-ID: <CA+FnnTwW+=MgpA+w_VUQCb=nPqHihGz51pc6TkYh_QX7ext7Ew@mail.gmail.com> (raw)
Hi,
A long time ago I built both Debug and Release versions of libpq.
For a while I was working with the Debug version without any issues
Now I tried to build a Release version of my program.
Compilation went fine but during linking I got
[code]
1>libpq.lib(snprintf.obj) : warning LNK4217: locally defined symbol
_sprintf imported in function _fmtptr
1>libpq.lib(dirmod.obj) : error LNK2001: unresolved external symbol
__imp____iob_func
1>libpq.lib(win32error.obj) : error LNK2001: unresolved external
symbol __imp____iob_func
1>libpq.lib(fe-connect.obj) : error LNK2001: unresolved external
symbol __imp____iob_func
1>libpq.lib(snprintf.obj) : error LNK2001: unresolved external symbol
__imp____iob_func
1>libpq.lib(encnames.obj) : error LNK2001: unresolved external symbol
__imp____iob_func
1>libpq.lib(chklocale.obj) : error LNK2001: unresolved external symbol
__imp____iob_func
1>libpq.lib(fe-exec.obj) : error LNK2019: unresolved external symbol
__imp__sscanf referenced in function _pqSaveParameterStatus
1> 33 Warning(s)
1> 8 Error(s)
1>
[/code]
Do I need to rebuild a Release version with some missing parameters?
I'm working with MSVC 2017 for now...
Thank you.
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-general@postgresql.org
Cc: ikorot01@gmail.com, pgsql-general@lists.postgresql.org
Subject: Re: Problem linking with Release library
In-Reply-To: <CA+FnnTwW+=MgpA+w_VUQCb=nPqHihGz51pc6TkYh_QX7ext7Ew@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox