log4cxx + VS2005 + Windows SDK v6.0 = compile error

If you are following the instructions to build log4cxx 0.10 in Visual Studio 2005, and you have the Windows Platform SDK v6.0 installed, you may get errors compiling multicast.c in the apr project.

I found the solution, and it’s pretty easy. Open up multicast.c and edit the lines:



to be, instead:

136: #if defined(group_source_req)

148: #if defined(group_source_req)


e voilĂ ! now it compiles.

Check out my latest book, the essential, in-depth guide to performance for all .NET developers:

Writing High-Performance.NET Code by Ben Watson. Available now in print and as an eBook at:

One thought on “log4cxx + VS2005 + Windows SDK v6.0 = compile error

  1. Pingback: Bookmarks about Sdk

Leave a Reply

Your email address will not be published. Required fields are marked *