apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Saxon" <sa...@saxon.cx>
Subject Re: Problems compiling APR sources on Windows - PLEASE HELP
Date Thu, 14 Nov 2002 13:01:53 GMT

> Every time I try to compile it, I get error:
> Linking ...
> test.obj : error LNK2019: unresolved external symbol
>   __imp__apr_initialize@0 referenced in function _main
>   Debug/test.exe : fatal error LNK1120: 1 unresolved externals
> I also try to define APR_DECLARE_STATIC and APU_DECLARE_STATIC symbols in
> project properties->C/C++->Command Line (/D "APR_DECLARE_STATIC" /D
> "APU_DECLARE_STATIC"), but in this way I only get a lot of new errors (so
> the situation is even wrose).
> Please can someone help me to compile my simple aplication?

In VC6 at least, the place to put APR_DECLARE_STATIC is under Project ->
Settings -> C/C++ tab -> Category: Preprocessor -> Preprocessor definitions.
I'm not sure of the equivalent for VC7, but that fixed the same problem for


View raw message