You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4cxx-dev@logging.apache.org by Peter Steiner <pe...@hugwi.ch> on 2005/04/28 11:32:30 UTC
Build failure with VC8 Beta 2
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 <pe...@hugwi.ch>
/ /_/ / 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