Problem linking with Release library - Mailing list pgsql-general

From Igor Korot
Subject Problem linking with Release library
Date
Msg-id CA+FnnTwW+=MgpA+w_VUQCb=nPqHihGz51pc6TkYh_QX7ext7Ew@mail.gmail.com
Whole thread
Responses Re: Problem linking with Release library
List pgsql-general
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.



pgsql-general by date:

Previous
From: Torsten Krah
Date:
Subject: Re: untracked child process (PID XXXXX) exited with exit code 120
Next
From: Adrian Klaver
Date:
Subject: Re: Problem linking with Release library