Using C++ std streams (fstream, ofstream and ifstream) in eCos.

View: New views
4 Messages — Rating Filter:   Alert me  

Using C++ std streams (fstream, ofstream and ifstream) in eCos.

by grinder213 :: Rate this Message:

| View Threaded | Show Only this Message

Hi,

I'm trying to use the file stream classes of the standard C++ library together with a mounted FAT file system on a SD card. I'm using the eCoscentric release of 2.98. on a ATMEL AT91SAM9260-EK.
The regular BSD calls to the filesystem are working just fine! I use the same device paths and filenames in the two examples.

When I try to use either the fstream, ofstream or ifstream, the code compiles with no problems, but the open calls (either directly or through the constructor) never succeeds.

Is it possible to use the file stream classes the way I want to use them?

Best Regards

--
Morten  


Re: Using C++ std streams (fstream, ofstream and ifstream) in eCos.

by Gary Thomas :: Rate this Message:

| View Threaded | Show Only this Message

grinder213 wrote:

> Hi,
>
> I'm trying to use the file stream classes of the standard C++ library
> together with a mounted FAT file system on a SD card. I'm using the
> eCoscentric release of 2.98. on a ATMEL AT91SAM9260-EK.
> The regular BSD calls to the filesystem are working just fine! I use the
> same device paths and filenames in the two examples.
>
> When I try to use either the fstream, ofstream or ifstream, the code
> compiles with no problems, but the open calls (either directly or through
> the constructor) never succeeds.
>
> Is it possible to use the file stream classes the way I want to use them?

C++ stdlib is not supported in the public CVS.  Check the
archives as some help may be available (Zylin has some code,
eCosCentric can provide a complete package, etc)

--
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------

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


Re: Using C++ std streams (fstream, ofstream and ifstream) in eCos.

by grinder213 :: Rate this Message:

| View Threaded | Show Only this Message

From my previous post..

>I'm using the
> eCoscentric release of 2.98. on a ATMEL AT91SAM9260-EK.

So I guess the std lib should be fully supported in my version of the code!?!?

But where am I going wonrg with the streams then?

--
Morten

Re: Using C++ std streams (fstream, ofstream and ifstream) in eCos.

by Andrew Lunn-2 :: Rate this Message:

| View Threaded | Show Only this Message

On Tue, May 26, 2009 at 11:16:43PM -0700, grinder213 wrote:
>
> >From my previous post..
>
> >I'm using the
> > eCoscentric release of 2.98. on a ATMEL AT91SAM9260-EK.
>
> So I guess the std lib should be fully supported in my version of the
> code!?!?

You need to ask eCosCentric that, not us. Maybe your eCos release is
too old? Maybe you did not licensed the C++ support?
>
> But where am I going wonrg with the streams then?

Again, ask eCosCentric. You have a support agreement with them,
otherwise you would not have eCosPro.

          Andrew

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