Thanx

My main-problem was, that i used cyg_user_start() instead of the mandatory main()... Now the cout is working as long i use it only from one thread at a time. But my systems reboots as soon as i want to get a handle via fopen() or cyg_io_lookup() form "/dev/tty2" as example. Even ofstream fser; fser.open("/dev/tty2", , ios_base::out); crashes...

It not so easy to use, as i was hoping...

Oliver

John Dallaway schrieb:
Hi Oliver

oliver munz @ s p e a g wrote:

Is there any "hello_uSTL.cxx" and a working makefile for it?

There's a trivial example in the eCos reference:

  http://ecos.sourceware.org/docs-latest/ref/using-ustl-library.html

You don't need any special compiler switches. Build your application
.cxx files in the same way that you build application .c files for use
with eCos. Having said that, you might decide to build with "-Wno-undef"
to eliminate various (benign) warning messages triggered by the uSTL
header files.

I hope this helps...

John Dallaway
eCos maintainer





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

Reply via email to