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: Newbie question: Compiling helloworld-APR.c under Windows
Date Fri, 25 Jan 2008 20:47:26 GMT
Joachim Ziegler wrote:
> Hello Ruben,
>  > Try including <apr.h> before apr_general.
> I still get the same error.

If you used a -win32-src.zip file, and run nmake against the
makefile.win, you shouldn't be having problems.

If you import into VS2005/2008, there are dependency hassles,
but you can usually work those out by reviewing the build
target and it's dependencies.  APR alone is pretty easy.

You MUST end up with apr.h derived from apr.hw fixed-file,
not the ./configure gunk.

Finally, apr.h defines those APR_DECLARE macros to be .dll
imports if you do nothing.  You do need to declare -D WIN32
of course.

You only define APR_DECLARE_STATIC etc if you want to bind
to a static library of apr, and don't want to see all sorts
of noisy "importing exported symbol" warnings.


View raw message