problems compiling under c++ 3.4

Wed Jul 6 14:14:00 GMT 2005

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
> /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


More information about the Gcc-help mailing list