[orbitcpp-list] Re: [gtkmm] ORBit2 cpp: cstddef include error
Status: Beta
Brought to you by:
philipd
From: Joe Y. <jw...@di...> - 2002-01-17 13:17:11
|
> While trying to get the ORBit2 cpp branch (see link below) working with > some example code, I'm getting a > cstddef: No such file or directory > error. This file is part of gcc, so I'm hoping that somebody can > suggest why it's not being found. > > make[3]: Entering directory `/home/murrayc/bonoboui2-hello-cpp/src' > gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. > hello.c > In file included from > /gnome/head/INSTALL/include/orbit-2.0/orbit/orb-cpp/orbitcpp.hh:42, > from corba/Bonobo-cpp-common.hh:11, > from corba/Bonobo-cpp.hh:6, > from hello.c:36: > /gnome/head/INSTALL/include/orbit-2.0/orbit/orb-cpp/orbitcpp_sequence.hh:32:19: cstddef: No such file or directory > The problem is that you're compiling a C source file, so the libstdc++ headers aren't being implicitly -I'd in. You need to explicitly set the language to c++ by adding "-x c++" to CFLAGS. cheers, -- Joe Yandle http://www.divisionbyzero.com/jwy/pubkey.asc If video games really affected kids, then we'd all be running around in dark rooms, munching on pills, and listening to electronic music. |