Hello!
When building the current CVS head with Visual Studio 2005 Beta 2, the
following problem occurs during building of apr-iconv:
[cc] iconv_module.c
[cc] C:\Programme\Microsoft Visual Studio
8\VC\PlatformSDK\include\wspiapi.h(44) : error C2894: templates cannot be
declared to have 'C' linkage
The problem is in logging-log4cxx/src/iconv_module.c, when two headers
are included under extern "C". The attached patch fixes the build with
VC8; i haven't tried it with other compilers.
===================================================================
--- iconv_module.cpp
+++ iconv_module.cpp
@@ -25,1 +25,1 @@
*/
#define ICONV_INTERNAL
-extern "C" {
+// extern "C" {
#include <apr.h>
#include <iconv.h>
-}
+// }
#include <stdlib.h>
namespace log4cxx {
===================================================================
Regards, Peter
--
_ _ Peter Steiner <[EMAIL PROTECTED]>
/ /_/ / Hug-Witschi AG <http://www.hugwi.ch/>
/ _ / Electronic Engineering
/_/ /_/ _ _ Auriedstrasse 10
/ / / / / / CH-3178 Boesingen
/ /_/ /_/ / Tel +41 31 740 44 44
/_ _ _ _ _/ Fax +41 31 740 44 45