* [ECOS] Programming in C++
@ 2001-05-03 22:09 Alfredo Carrillo
2001-05-04 11:31 ` Jonathan Larmour
0 siblings, 1 reply; 2+ messages in thread
From: Alfredo Carrillo @ 2001-05-03 22:09 UTC (permalink / raw)
To: ecos-discuss
Hi,
I'm trying to program in C++, but when I compile te code there are some errors (undefined references to 'cout' and 'endl').
Another newbie; thanks in advance for any help.
The code looks as follows:
#include <cyg/kernel/kapi.h>
#include <stdio.h>
#include <iostream.h>
#include "class1.cc"
extern "C" {
void cyg_user_start(void);
void main_thread(cyg_addrword_t);
}
#define NTHREADS 1
#define STACKSIZE 4096
cyg_handle_t thread[NTHREADS];
cyg_thread thread_obj[NTHREADS];
char stack[NTHREADS][STACKSIZE];
void cyg_user_start(void)
{
cyg_thread_create(4, main_thread, (cyg_addrword_t) 0,
"main_th", (void *) stack[0],
STACKSIZE, &thread[0], &thread_obj[0]);
cyg_thread_resume(thread[0]);
}
void main_thread(cyg_addrword_t data)
{
class1 c;
c.prt();
}
--
Alfredo Carrillo
jalfredoc@netscape.net
__________________________________________________________________
Get your own FREE, personal Netscape Webmail account today at http://webmail.netscape.com/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [ECOS] Programming in C++
2001-05-03 22:09 [ECOS] Programming in C++ Alfredo Carrillo
@ 2001-05-04 11:31 ` Jonathan Larmour
0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Larmour @ 2001-05-04 11:31 UTC (permalink / raw)
To: Alfredo Carrillo; +Cc: ecos-discuss
Alfredo Carrillo wrote:
>
> Hi,
> I'm trying to program in C++, but when I compile te code there are some errors (undefined references to 'cout' and 'endl').
Yes, eCos doesn't support C++ library features like this. Sorry. It is on
the roadmap, but I can't give any date.
Jifl
--
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-05-04 11:31 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-05-03 22:09 [ECOS] Programming in C++ Alfredo Carrillo
2001-05-04 11:31 ` 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).