gmp on Genode + Fiasco.OC

Sivaramakrishnan KC chandras at ...79...
Wed Jul 27 16:33:00 CEST 2011


Hi,

While using gmp library (from libports) in a c project works fine, 
including gmp in a c++ project throws the following compiler errors. Any 
insight on what could be going wrong here?

Program app/src/test-ml
     COMPILE  main.o
In file included from 
/home/kc/install/omnios/genode/ml/src/app/src/main.cc:1:
/home/kc/install/omnios/genode/libports/include/gmp/x86_32/gmp.h:24:70: 
warning: iosfwd: No such file or directory
/home/kc/install/omnios/genode/libports/include/gmp/x86_32/gmp.h:25:18: 
warning: cstdio: No such file or directory
/home/kc/install/omnios/genode/libports/include/gmp/x86_32/gmp.h:51:40: 
warning: cstddef: No such file or directory
In file included from 
/home/kc/install/omnios/genode/ml/src/app/src/main.cc:1:
/home/kc/install/omnios/genode/libports/include/gmp/x86_32/gmp.h:538: 
error: 'std::FILE' has not been declared
/home/kc/install/omnios/genode/libports/include/gmp/x86_32/gmp.h:542: 
error: expected ',' or '...' before '(' token
/home/kc/install/omnios/genode/libports/include/gmp/x86_32/gmp.h:547: 
error: expected ',' or '...' before '(' token
/home/kc/install/omnios/genode/libports/include/gmp/x86_32/gmp.h:624: 
error: 'size_t' has not been declared
In file included from 
/home/kc/install/omnios/genode/ml/src/app/src/main.cc:1:
/home/kc/install/omnios/genode/libports/include/gmp/x86_32/gmp.h:807: 
error: 'size_t' has not been declared
/home/kc/install/omnios/genode/libports/include/gmp/x86_32/gmp.h:807: 
error: 'size_t' has not been declared
/home/kc/install/omnios/genode/libports/include/gmp/x86_32/gmp.h:807: 
error: 'size_t' has not been declared
/home/kc/install/omnios/genode/libports/include/gmp/x86_32/gmp.h:904: 
error: 'size_t' has not been declared
/home/kc/install/omnios/genode/libports/include/gmp/x86_32/gmp.h:904: 
error: 'size_t' has not been declared
/home/kc/install/omnios/genode/libports/include/gmp/x86_32/gmp.h:904: 
error: 'size_t' has not been declared
/home/kc/install/omnios/genode/libports/include/gmp/x86_32/gmp.h:1092: 
error: 'size_t' does not name a type
/home/kc/install/omnios/genode/libports/include/gmp/x86_32/gmp.h:1096: 
error: 'size_t' does not name a type
/home/kc/install/omnios/genode/libports/include/gmp/x86_32/gmp.h:1353: 
error: 'size_t' has not been declared
/home/kc/install/omnios/genode/libports/include/gmp/x86_32/gmp.h:1444: 
error: 'size_t' does not name a type
/home/kc/install/omnios/genode/libports/include/gmp/x86_32/gmp.h:1533: 
error: 'size_t' does not name a type
/home/kc/install/omnios/genode/libports/include/gmp/x86_32/gmp.h:1590: 
error: 'size_t' has not been declared
/home/kc/install/omnios/genode/libports/include/gmp/x86_32/gmp.h:1790: 
error: 'size_t' does not name a type
/home/kc/install/omnios/genode/libports/include/gmp/x86_32/gmp.h:2180: 
error: expected constructor, destructor, or type conversion before '&' token
/home/kc/install/omnios/genode/libports/include/gmp/x86_32/gmp.h:2181: 
error: expected constructor, destructor, or type conversion before '&' token
/home/kc/install/omnios/genode/libports/include/gmp/x86_32/gmp.h:2182: 
error: expected constructor, destructor, or type conversion before '&' token
/home/kc/install/omnios/genode/libports/include/gmp/x86_32/gmp.h:2183: 
error: expected constructor, destructor, or type conversion before '&' token
/home/kc/install/omnios/genode/libports/include/gmp/x86_32/gmp.h:2184: 
error: expected constructor, destructor, or type conversion before '&' token
/home/kc/install/omnios/genode/libports/include/gmp/x86_32/gmp.h:2185: 
error: expected constructor, destructor, or type conversion before '&' token
make[2]: *** [main.o] Error 1
make[1]: *** [test-ml.prg] Error 2
make: *** [gen_deps_and_build_targets] Error 2


Thanks
kc






More information about the users mailing list