Menu

#119 compiler problem with MSVC-8(2005)

closed-fixed
5
2009-09-07
2009-04-06
Kai Krueger
No

While compiling my project under Windows XP with Visual Studio 2005
with log4cpp and boost (x86_64 and i386 system) I get the following error messages:

Error 190 error C2589: '__int64' : illegal token on right side of '::'
P:\...\include\boost\date_time\time_resolution_traits.hpp 47

I found out that there is the following define in the include file config-win32.h (line 20):

/* define if the compiler has int64_t */
#ifndef LOG4CPP_HAVE_INT64_T
#define LOG4CPP_HAVE_INT64_T
#define int64_t __int64

using a typedef solves that problem

typedef __int64 int64_t;

Discussion

  • Kai Krueger

    Kai Krueger - 2009-04-06
     
  • Thomas Wabner

    Thomas Wabner - 2009-09-07

    applied attached patch and checked with 'make clean check' ... but only on linux (my gentoo system) ... hope the bug is fixed now

     
  • Thomas Wabner

    Thomas Wabner - 2009-09-07
    • assigned_to: nobody --> waffel
    • status: open --> closed-fixed
     

Log in to post a comment.