EBERSOLD André wrote:
> I tried to compile mico 2.3.13 on FC9 with gcc 4.3.0
> 
> just run configure and than make.
> 
> I got an error in fast_array.cc
> Someone knows where the definition UINT_MAX comes from ?

It comes from either your C++ compiler header files or from the OS
header files. It depends. On Solaris I do have it defined in
/usr/include/iso/limits_iso.h and also GCC 4.2.3 comes with its own
definition in
/usr/local/gcc-4.2.3/lib/gcc/i386-pc-solaris2.11/4.2.3/include/limits.h

Anyway, GCC team has clean up quite a lot of header files for 4.3.x
release so I guess what was included unnecessarily in previous GCC
releases is not included now hence the compilation failure.

Cheers,
Karel

> 
> Kind regards Andre E.
> 
> 
> c++  -I../include  -O2  -Wall -Wwrite-strings -fno-strict-aliasing
> -D_REENTRANT -D_GNU_SOURCE   -DPIC -fPIC  -c fast_array.cc -o
> fast_array.pic.o
> fast_array.cc:51: error: 'UINT_MAX' was not declared in this scope
> make[1]: *** [fast_array.pic.o] Error 1
> make[1]: Leaving directory `/home/...../.../mico/orb'
> make: *** [system] Error 1
> bash-3.2$ grep -r UINT_MAX *
> orb/fast_array.cc:const unsigned int MICO::__void_array::__EMPTY =
> UINT_MAX;
> bash-3.2$ pwd
> /home/aebersol/Builds/mico
> bash-3.2$ c++ --version
> c++ (GCC) 4.3.0 20080428 (Red Hat 4.3.0-8)
> 


-- 
Karel Gardas                  [EMAIL PROTECTED]
ObjectSecurity Ltd.           http://www.objectsecurity.com
_______________________________________________
Mico-devel mailing list
Mico-devel@mico.org
http://www.mico.org/mailman/listinfo/mico-devel

Reply via email to