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 can I use the CList? Thanks


hi all:
  while I include the file #include <cyg/infra/clist.hxx> in my *.c file,
when I compile the file I got loads of error as following:

parse error before `Cyg_DNode'
/ecos-e/epxa1_new_net/epxa1_new_net_install/include/cyg/infra/clist.hxx:92:
syntax error before `{'
/ecos-e/epxa1_new_net/epxa1_new_net_install/include/cyg/infra/clist.hxx:95:
warning: type defaults to `int' in declaration of `next'
/ecos-e/epxa1_new_net/epxa1_new_net_install/include/cyg/infra/clist.hxx:95:
warning: data definition has no type or storage class
/ecos-e/epxa1_new_net/epxa1_new_net_install/include/cyg/infra/clist.hxx:96:
parse error before `*'
/ecos-e/epxa1_new_net/epxa1_new_net_install/include/cyg/infra/clist.hxx:96:
warning: type defaults to `int' in declaration of `prev'
/ecos-e/epxa1_new_net/epxa1_new_net_install/include/cyg/infra/clist.hxx:96:
warning: data definition has no type or storage class
/ecos-e/epxa1_new_net/epxa1_new_net_install/include/cyg/infra/clist.hxx:98:
parse error before `:'
/ecos-e/epxa1_new_net/epxa1_new_net_install/include/cyg/infra/clist.hxx:107:
parse error before `*'
/ecos-e/epxa1_new_net/epxa1_new_net_install/include/cyg/infra/clist.hxx:107:
warning: return-type defaults to `int'
/ecos-e/epxa1_new_net/epxa1_new_net_install/include/cyg/infra/clist.hxx:107:
warning: function declaration isn't a prototype
/ecos-e/epxa1_new_net/epxa1_new_net_install/include/cyg/infra/clist.hxx:108:
parse error before `*'
/ecos-e/epxa1_new_net/epxa1_new_net_install/include/cyg/infra/clist.hxx:108:
warning: return-type defaults to `int'
/ecos-e/epxa1_new_net/epxa1_new_net_install/include/cyg/infra/clist.hxx:108:
warning: function declaration isn't a prototype
..........
......
....
..
.

Would this be the problem becasue (Clist) this is *.cpp file rather than C
file? how can I solve it problem? Thanks a lot.


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