[gnutls-help] Using gnutls_malloc()

Vladimir Levijev vladimir.levijev at gmail.com
Thu Mar 26 14:55:36 CET 2015


On 25 March 2015 at 14:07, Nikos Mavrogiannopoulos <nmav at gnutls.org> wrote:
> On Wed, Mar 25, 2015 at 11:10 AM, Vladimir Levijev
> <vladimir.levijev at gmail.com> wrote:
>>> I have no such issue when using mingw to compile with the library.
>> I have installed mingw and indeed had no issues there. However, I
>> wasn't able to link my program with GnuTLS statically (see attached
>> picture). Is it not possible or am I doing something wrong? I really
>> need a way to link with GnuTLS statically.
>
> To link statically you cannot link against the .dll.a. You need to
> link against the .a. I don't think that this is shipped in the windows
> binaries.

That's probably the reason why there was a link error in the first
place. This function is probably available in another DLL (I was
linking against libgnutls.dll.a, but the code is probably available in
libgnutls-28.dll).

Thanks,

VL



More information about the Gnutls-help mailing list