On 28/08/11 17:18, Terje Slettebø wrote:
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...
Seems to be a common gotcha across all platforms.
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. V4.6 fails to link with an undefined reference to strtof.
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)
Yes, v4.1.1 is the current release version, v4.6 is the development
version at trunk. Anyone can try v4.6, but you have to build it
yourself. The native compiler has only just recently become usable and
has had very little testing. V4.6 uses an improved shared library system
that is not compatible with earlier versions.
Is there any timeframe for a new release?
I believe John is planning a v4.1.2 release next, but there is no
specific time frame.
Lee.
_______________________________________________
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