Subject: [Win32] undefined reference

[Win32] undefined reference

From: <>
Date: Fri, 13 Mar 2015 02:15:51 +1100


Using a mingw-w64 port of 64-bit gcc-4.8.2 I've built static openssl-1.0.2,
and then built a static libssh2-1.5.0 against that openssl library.
But when I try to build against that libssh2-1.5.0 library I get hit with:

C:\_64\msys\1.0\local\lib\libssh2.a(misc.o):misc.c:(.text+0x40): undefined
reference to `__ms_vsnprintf'
C:\_64\msys\1.0\local\lib\libssh2.a(scp.o):scp.c:(.text+0x40): undefined
reference to `__ms_vsnprintf'

What do I need to link to here in order to resolve that ?

I've gone through the same process using a mingw-w64 port of *32-bit*
gcc-4.8.2 and everything works fine - though I think the 32-bit libssh2.a
also contains the same '__ms_vsnprintf' reference.


Received on 2015-03-12