apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "William A. Rowe, Jr." <wr...@rowe-clan.net>
Subject Re: Statically linking under Windows...
Date Mon, 13 Aug 2001 19:35:23 GMT
When you build with apr.mak, everything should be static.

So when you have sources that depend on static bindings to apr, you need to
/D APR_DECLARE_STATIC, which takes out (with no pain) all of the dynlink
fooness of the .dlls :)  See the httpd-2.0 support projects, such as ab.dsp.


----- Original Message ----- 
From: "Pier P. Fumagalli" <pier@betaversion.org>
To: <dev@apr.apache.org>
Sent: Saturday, August 11, 2001 7:04 PM
Subject: Statically linking under Windows...

> DOH! I can link easily to libapr.dll, (prepared thru nmake /f libapr.mak),
> but, if I want to link to its static version (done with nmake /f apr.mak I
> get all sorts of linking error... It seems that the shitty M$ linker cannot
> find any of the APR symbols (which are present in apr.lib). Probably it's
> because it "rewrites" all the function names to:
>  __imp__apr_functionname(...)
> Any clue on that? (BTW, the DLL is fine, so, don't worry about it too much!)
>     Pier

View raw message