This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
problems compiling under c++ 3.4
- From: MIGUEL GONZALEZ CASTANYOS <mgc at tid dot es>
- To: gcc-help at gcc dot gnu dot org
- Date: Wed, 06 Jul 2005 16:14:30 +0200
- Subject: problems compiling under c++ 3.4
Dear all,
I am compiling a C++ code a colleague sent me with some references to
string.h library.
He compiled the code in gcc-3.4.1 under Mandrake. I am trying to do the
same using gcc-3.4.2 under Debian but I got these errors:
> In file included from /usr/include/c++/3.4/cstring:49,
> from /usr/include/c++/3.4/bits/char_traits.h:45,
> from /usr/include/c++/3.4/string:47,
> from ../base/devicebase.h:9,
> from device.h:9,
> from devicelan.h:9,
> from devicelan.cpp:6:
> /usr/include/c++/3.4/cstddef:52: error: `::ptrdiff_t' has not been
declared
> /usr/include/c++/3.4/cstddef:53: error: `::size_t' has not been declared
- "devicelan.cpp" includes in line 6 "devicelan.h"
- "devicelan.h" includes in line 9 "device.h"
- "device.h" includes in line 9 "devicebase.h"
- "devicebase.h" includes in line 9 "string"
Maybe It is a well known problem, I tried to compile a hello world
program with a string.h include and it works perfectly...Dont know where
I should head my search...
Best Regards
Miguel