Lars Gullik Bjønnes wrote:
Rob Lahaye <[EMAIL PROTECTED]> writes:

| Lars Gullik Bjønnes wrote:

Rob Lahaye <[EMAIL PROTECTED]> writes:


| I have these results: | 1) Everything compiles like a charm, when I comment out in | boost/boost/cstdint.hpp this line

|     //  typedef uint64_t uintmax_t;

| 2) When I keep the offending typedef line in boost/boost/cstdint.hpp
|     and comment out in  /usr/include/inttypes.h  this line:

|     //typedef       __uint64_t      uint64_t;

|     I get another (obvious?) error during the compilation:

| [...snip...]
| depmode=gcc3 /usr/local/bin/bash ../../../../config/depcomp \
| /usr/local/bin/bash ../../../../libtool --mode=compile /usr/local/bin/g++33 -DHAVE_CONFIG_H -I. -I. 
-I../../../../src -I../../../../boost  -I/usr/local/include   -I/usr/X11R6/include 
-DBOOST_USER_CONFIG="<config.h>" -g -O -fno-exceptions -W -Wall -c -o 
cpp_regex_traits.lo `test -f cpp_regex_traits.cpp || echo './'`cpp_regex_traits.cpp
|   /usr/local/bin/g++33 -DHAVE_CONFIG_H -I. -I. -I../../../../src -I../../../../boost 
-I/usr/local/include -I/usr/X11R6/include "-DBOOST_USER_CONFIG=<config.h>" -g -O 
-fno-exceptions -W -Wall -c cpp_regex_traits.cpp -MT cpp_regex_traits.lo -MD -MP -MF 
.deps/cpp_regex_traits.TPlo -o cpp_regex_traits.o
| In file included from ../../../../boost/boost/regex/config.hpp:54,
|                   from cpp_regex_traits.cpp:22:
| ../../../../boost/boost/cstdint.hpp:116: error: `uint64_t' not
| declared

So commenting out the line in inttypes.h is not the solution.

| What else can I do, to clarify this problem?

Is __uint64_t a typedef? Or a macro?

All I can find, is this in /usr/include/machine/ansi.h:

  #ifdef __GNUC__
  typedef int __attribute__((__mode__(__DI__)))            __int64_t;
  typedef unsigned int __attribute__((__mode__(__DI__)))  __uint64_t;
  #else
  /* LONGLONG */
  typedef long long                                        __int64_t;
  /* LONGLONG */
  typedef unsigned long long                              __uint64_t;
  #endif

There are many other typedefs here (without the #ifdef construct), for example:
  typedef __signed char              __int8_t;
  typedef unsigned char             __uint8_t;
  typedef short                     __int16_t;
  typedef unsigned short           __uint16_t;
  typedef int                       __int32_t;
  typedef unsigned int             __uint32_t;
  typedef int                      __intptr_t;
  typedef unsigned int            __uintptr_t;


Does that ring a bell?

Rob.




Reply via email to