Hi again.
From: "John Tytgat" <[email protected]>
On 28/08/11 17:18, Terje Slettebø wrote:
> I've tried this too, and, yes, it works: I can use the vector in
> those functions, now, thanks! :)
>
> I also tried this (instead of the <stdio.h> header):
>
> #include <iostream>
>
> std::cout << "Test"; // Inside gccmodule_init()
>
> but that crashed ("Abort on data transfer at &20AB2ACC9"). The
> original puts() works, though. I wonder why. Maybe there's a
> difference between how GCC handles C/C++ I/O.
Hmm, this one may take more time. Unfortunately, I probably wont be able
to fix this before I go on holiday, but I will take a look when I get
back.
FYI, I never tried to use STL for C++ coded modules so I'm not surprised
there are some interesting things to be fixed there ;-)
<snip>
Thanks for the feedback. :) Like I said in the followup mail, it appears
that other parts of the standard C++ library, like std::vector, works, and
working with modules, iostream would mostly be useful for debugging, anyway,
and then C functions may be used instead.
Regards,
Terje
_______________________________________________
GCCSDK mailing list [email protected]
Bugzilla: http://www.riscos.info/bugzilla/index.cgi
List Info: http://www.riscos.info/mailman/listinfo/gcc
Main Page: http://www.riscos.info/index.php/GCCSDK