From: "Lee Noar" <[email protected]>
I tried your example with version 4.6 (I don't currently have a 4.1.2
build, as I do most of my development on 4.6) and that also failed with the
same error. I think this is because you are linking with gcc rather than
g++, I changed LINK in the makefile to g++ and the link succeeded. When
linking C++, it is recommended that you use the g++ driver to ensure the
correct libraries (in this case libstdc++) are linked in.
Wow, is it really that simple...
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.
Regarding version 4.6: It appears that only version 4.1.1 (?) is still
available for download, is that right?
(http://www.riscos.info/packages/DevelopmentDetails.html#gcc4)
Is there any timeframe for a new release?
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