Hi Uwe Uwe Kindler wrote:
> according to the discussion on the ecos-discuss mailinglist > (http://ecos.sourceware.org/ml/ecos-discuss/2009-09/msg00259.html) I > created a patch that fixes the linker issue of the uSTL hello world > example. > > I tested the solution with differend configurations (-O0 and -O2) and it > worked all the time. Thank you for the patch. I have verified that the new definition of CYG_REFERENCE_OBJECT() is compatible with the older eCos toolchain (GCC 3.2.1) so I will check this in. >From your description, it would appear that moving the lines: CYG_REFERENCE_OBJECT(stdin); CYG_REFERENCE_OBJECT(stdout); CYG_REFERENCE_OBJECT(stderr); from open() to cyg_fd_init() is not now necessary for correct behaviour of the minimal uSTL hello world application. However, it may or may not be sensible to make this change anyway. I will leave this to Jifl/Nick. John Dallaway
