DDE30 !CC oddity
David Pitt (3386) 1248 posts |
Time to try out DDE30. A nice simple Hello World, what could possibly go wrong! #include <stdio.h> int main(void) { printf("Hello World\n"); return(0); } Using !CC in DDE30 Norcroft RISC OS ARM C vsn 5.85 [22 Oct 2020] ARM Linker: (Fatal) File C:o.hostlib not found. There is no such issue doing the job properly with the Makefiles and CApp. Also, there is no such issue with !CC in DDE29. P.S. There is a hardwired reference to |
Paolo Fabio Zaino (28) 1882 posts |
yup definitely a new surprise from DDE30! However, for the time being (while ROOL fixes it), you can just add CLIB:o.stubs OR just use the Shared Makefiles to compile your code and that link error will disappear.. In other words, it seems that this bug is triggered by an “empty” linker line or something like that… |
Rob Heaton (274) 515 posts |
Hopefully an update will be out soon for DDE30! |
Chris Mahoney (1684) 2165 posts |
That’ll be why I didn’t run into this issue; everything of mine uses those. And I suspect all of ROOL’s stuff does too!
Has anyone reported this directly to ROOL or are you just hoping that someone looks at the forum? |
Paolo Fabio Zaino (28) 1882 posts |
@ Chris
Personally I am running multiple tests, there are few other bits I’ve found so far (which are not bugs, but needs mentioning) like for example CLK_TCK define has been removed from time.h and instead we should now use CLOCKS_PER_SEC. When I’ll have a list I’ll definitely send my findings to ROOL, but you make a good point we all should send our findings to bugs email. |
Sprow (202) 1158 posts |
Since it works with the shared makefiles, which just launch the tool with various switches like the !CC frontend does, there can’t be that much difference (the front end only has 2 options enabled by default). Indeed, unticking Work directory from the menu allows the classic |
David Pitt (3386) 1248 posts |
*cc hello.c Norcroft RISC OS ARM C vsn 5.85 [22 Oct 2020] * *cc hello.c -desktop ^ Norcroft RISC OS ARM C vsn 5.85 [22 Oct 2020] ARM Linker: (Fatal) File C:o.hostlib not found. * With ‘Work directory’ unticked but CSD unset then !CC does this :- Norcroft RISC OS ARM C vsn 5.85 [22 Oct 2020] The ‘o’ directory is present. Manually setting the Work directory works. |
David Pitt (3386) 1248 posts |
An email has been sent to ROOL. |
Krzysztof Klis (2832) 36 posts |
Thank you for this thread. I just bought DDE, because after several years of using RISC OS on my venerable Raspberry Pi I wanted to try programming for it. I started with the HelloW example from the C/C++ manual and bumped into the very same issue with arm linker/hostlib. After setting up a proper work directory the example finally compiles. With all respect to DDE developers, I hope there are no more surprises like this in the compiler. I bought DDE hoping that being a RISC OS native tool it would be less problematic than gcc. Because I am a DDE newbe it’s crucial for me that examples from the manuals work as described. |