curl-library
Re: Compiling on MingW32 without a DLL
Date: Mon, 20 Feb 2006 04:58:08 +0100
Matthew "Zashi" Hiles ha scritto:
> I've finally got a cross compiler working. No, I was never able to
> compile the compiler myself, I had to convert the debian packages--an
> ugly hack, but after 2 weeks of trying, I'm satisfied.
Reinventing the wheel? :\
>
> Now that I've got a windows compiler working, I've succesfully
> compiled my code for windows and it seems that the libcurl dll file is
> always required. After taking some cursory glances at documentation
> and google, I cannot tell if there is anyway to compile so that the
> external DLL is not necessary.
>
> Is it possible to compile for windows so that the external DLL isn't
> necessary (Aside from including it as a resource or having the program
> extract the DLL) ?
You should compile a static version of libcurl, defining also
CURL_STATICLIB for that purpose. Also delete the .def file, useless for
the static library.
>
> ~Zashi
>
-- LegolasReceived on 2006-02-20