Lars Gullik Bjønnes wrote:
Rob Lahaye <[EMAIL PROTECTED]> writes:
Ok, it must be FreeBSD that is the "problem"
Is uintmax_t a macro? Or uint32_t?
Has <inttypes.h> on FreeBSD changed recently?
(upgraded libc perhaps?)
What is uintmax_t/uint32_t typdeffed/defined as in <inttypes.h>
| This is what I get:
| $ grep -n uintmax_t /usr/include/inttypes.h
| $ grep -n uint32_t /usr/include/inttypes.h
| /usr/include/inttypes.h:18:typedef __uint32_t uint32_t;
| Is that causing the trouble?
Not directly. This compiles:
typedef long tull;
typedef tull tall;
int main()
{}
Where does __uint32_t come from?
All this is going a bit beyond my level of understanding the compilation process.
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
../../../../boost/boost/cstdint.hpp:117: error: syntax error before `;' token
../../../../boost/boost/cstdint.hpp:118: error: syntax error before `;' token
../../../../boost/boost/cstdint.hpp:121: error: syntax error before `unsigned'
gmake[4]: *** [cpp_regex_traits.lo] Error 1
[.....and many more error lines, related to above error....]
What else can I do, to clarify this problem?
Regards,
Rob.