This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

how to solve these compile error?



Now I write some component for eCos,and use eCos configtools build the whole eCos packages, all of these work correctly.
But when I use i-386-elf-gcc compile my application with header file of the component that newly added, it will occur following errors:
(in my application,ktaskapi.h is my header file for my component, and in this file just two sentences:#include <pkgconf/kernel.h>
#include <cyg/infra/cyg_type.h> )

In file included from /ecos_base/TASK1_install/include/cyg/kernel/ktaskapi.h:11,
from tasktest.c:2:
/ecos_base/TASK1_install/include/cyg/infra/cyg_type.h:173: parse error before `__tmp1'
/ecos_base/TASK1_install/include/cyg/infra/cyg_type.h:173: `_name_' undeclared here (not in a function)
/ecos_base/TASK1_install/include/cyg/infra/cyg_type.h:173: warning: data definition has no type or storage class
/ecos_base/TASK1_install/include/cyg/infra/cyg_type.h:174: parse error before `__tmp2'
/ecos_base/TASK1_install/include/cyg/infra/cyg_type.h:174: initializer element is not constant
/ecos_base/TASK1_install/include/cyg/infra/cyg_type.h:174: warning: data definition has no type or storage class
/ecos_base/TASK1_install/include/cyg/infra/cyg_type.h:175: redefinition of `__tmp1'
/ecos_base/TASK1_install/include/cyg/infra/cyg_type.h:173: `__tmp1' previously defined here
/ecos_base/TASK1_install/include/cyg/infra/cyg_type.h:175: initializer element is not constant
/ecos_base/TASK1_install/include/cyg/infra/cyg_type.h:175: warning: data definition has no type or storage class
/ecos_base/TASK1_install/include/cyg/infra/cyg_type.h:176: parse error before `}'
/ecos_base/TASK1_install/include/cyg/infra/cyg_type.h:236: parse error before `CYG_BYTE'
/ecos_base/TASK1_install/include/cyg/infra/cyg_type.h:236: warning: data definition has no type or storage class
/ecos_base/TASK1_install/include/cyg/infra/cyg_type.h:318: parse error before `#'
/ecos_base/TASK1_install/include/cyg/infra/cyg_type.h:363: stray '\' in program
/ecos_base/TASK1_install/include/cyg/infra/cyg_type.h:395: warning: This file contains more `}'s than `{'s.
In file included from tasktest.c:2:
/ecos_base/TASK1_install/include/cyg/kernel/ktaskapi.h:24: parse error before `cyg_handle_t'
/ecos_base/TASK1_install/include/cyg/kernel/ktaskapi.h:24: warning: data definition has no type or storage class
/ecos_base/TASK1_install/include/cyg/kernel/ktaskapi.h:33: warning: parameter names (without types) in function declaration




_________________________________________________________________
与联机的朋友进行交流,请使用 MSN Messenger: http://messenger.msn.com/lccn/

--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]