public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] How can I use the CList? Thanks
@ 2003-04-16  9:56 QiangHuang
  2003-04-16 21:50 ` Jonathan Larmour
  0 siblings, 1 reply; 2+ messages in thread
From: QiangHuang @ 2003-04-16  9:56 UTC (permalink / raw)
  To: ecos-discuss

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [ECOS] How can I use the CList? Thanks
  2003-04-16  9:56 [ECOS] How can I use the CList? Thanks QiangHuang
@ 2003-04-16 21:50 ` Jonathan Larmour
  0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Larmour @ 2003-04-16 21:50 UTC (permalink / raw)
  To: QiangHuang; +Cc: ecos-discuss

QiangHuang wrote:
> 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:
> 
[snip]
> Would this be the problem becasue (Clist) this is *.cpp file rather than C
> file? 

Yes.

> how can I solve it problem? Thanks a lot.

Change your .c files to .cxx files?

jifl
-- 
eCosCentric    http://www.eCosCentric.com/    The eCos and RedBoot experts
--[ "You can complain because roses have thorns, or you ]--
--[  can rejoice because thorns have roses." -Lincoln   ]-- Opinions==mine


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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-04-16 21:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-04-16  9:56 [ECOS] How can I use the CList? Thanks QiangHuang
2003-04-16 21:50 ` Jonathan Larmour

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).