libmicrohttpd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [libmicrohttpd] Compiling libmicrohttpd-0.4.4 on Windows


From: Nils Durner
Subject: Re: [libmicrohttpd] Compiling libmicrohttpd-0.4.4 on Windows
Date: Thu, 07 Jan 2010 20:26:44 +0100
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.1.5) Gecko/20091204 Lightning/1.0b1 Thunderbird/3.0

> So, for example, libmicrohttpd uses "-lplibc"--but the actual
> dll name is "libplibc-1.dll", and gcc can't find the one from the
> other on its own.
>   

The name of the DLL is recorded in libplibc.la:
> # The name that we can dlopen(3).
> dlname='../bin/libplibc-1.dll'

> In my case--and no doubt this is a little odd--I placed unversioned
> dlls in my lib dir. But: each dll knows its original name, and that's
> what the linker records. So you still need to distribute the
> *versioned* dlls, not the *unversioned* ones.

MHD and PlibC both use libtool, which should do all this for you
automatically.

> $ cp /mingw/bin/libgcrypt-11.dll /mingw/lib/libgcrypt.dll
> $ cp /mingw/bin/libgpg-error-0.dll /mingw/lib/libgpg-error.dll
> $ cp /mingw/bin/libiconv-2.dll /mingw/lib/libiconv.dll
> $ cp /mingw/bin/libintl-8.dll /mingw/lib/libintl.dll
> $ cp /mingw/bin/pthreadGC2.dll /mingw/lib/libpthread.dll
>   

I only use the "versioned" DLLs, I never copied mine like that.


Regards,

Nils




reply via email to

[Prev in Thread] Current Thread [Next in Thread]