×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Mar 2003
    Posts
    45

    Porting C++ code to Symbian - Stream support problems

    Hi everyone,

    I need to port some existing C++ code to Symbian OS v6.1. The trouble is that the code contains lots of stream objects (iostream, fstream...) and as you all know iostream.h is not part of the C standard library supported by Symbian.
    So I don't see how to port this code (except than rewriting the code in standard C with stdio.h C library).
    Is there a better solution?
    Could I use symbian stream class for that?

    Thanks in advance!
    Seb.

  2. #2
    Registered User
    Join Date
    Jul 2003
    Posts
    4

    Stream support problem

    Did you solve your problem in the meantime. I have the same problem. Thx in advance.

  3. #3
    Registered User
    Join Date
    Mar 2003
    Posts
    45
    Unfortunately I had to rewrite the istream and ostream classes.
    I used a FILE* object as a protected variable to be able to have all functionnalities I needed from iostream.

    I don't know if this is the best solution but at least that works. I am still interested if you find a better (maybe faster) way to do that.

    Good luck,
    Seb

  4. #4
    Registered User
    Join Date
    Jul 2003
    Posts
    15

    try this

    include this in your mmp file (this will recognize all C libraries)

    LIBRARY estlib.lib
    SYSTEMINCLUDE . \epoc32\include\libc

    greate isin't it?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×