Error Message: declaration does not declare anything
Jeff Wood
jwood@tc.fluke.com
Wed Jun 20 16:16:00 GMT 2001
I'm trying to cross-compile wxGTK for the strongarm. I keep getting the
following from the make:
In file included from
/usr/local/arm/lib/gcc-lib/arm-linux/2.95.3/../../../../arm-linux/include/st
dlib.h:391,
from include/wx/string.h:61,
from include/wx/memory.h:20,
from include/wx/object.h:20,
from include/wx/gtk/accel.h:21,
from include/wx/accel.h:9,
from ./src/gtk/accel.cpp:14:
sys/types.h:63: declaration does not declare anything
sys/types.h:68: declaration does not declare anything
sys/types.h:78: declaration does not declare anything
sys/types.h:84: declaration does not declare anything
sys/types.h:96: declaration does not declare anything
make: *** [accel.o] Error 1
First, I'm not sure what the error message means. Secondly, maybe someone
out there has run into the
cross-compile error that I'm seeing? If so, I could sure use some help.
Oh, Yea -- the lines referenced in the sys/types.h are typedefs and are
included below
(and I appologize for the length).
#ifndef __gid_t_defined
typedef __gid_t gid_t; // this is line 63
# define __gid_t_defined
#endif
#ifndef __mode_t_defined
typedef __mode_t mode_t; // this is line 68
# define __mode_t_defined
#endif
.
.
.
#ifndef __uid_t_defined
typedef __uid_t uid_t; // this is line 78
# define __uid_t_defined
#endif
#ifndef __off_t_defined
# ifndef __USE_FILE_OFFSET64
typedef __off_t off_t; // this is line 84
# else
typedef __off64_t off_t;
# endif
# define __off_t_defined
#endif
#if defined __USE_LARGEFILE64 && !defined __off64_t_defined
typedef __off64_t off64_t;
# define __off64_t_defined
#endif
#ifndef __pid_t_defined
typedef __pid_t pid_t; // this is line 96
# define __pid_t_defined
#endif
Thanks,
Jeff Wood
Fluke, Networks
719.598.3842 x662
More information about the Gcc-help
mailing list