Code: Select all
gcc -mcrt=clib2-ts helloworld.c
How to fix this?
Code: Select all
gcc -mcrt=clib2-ts helloworld.c
It works with my SDK 53.24 which was installed long ago but when I did a fresh install it didn't work for me either. In "SDK:gcc/lib/gcc/ppc-amigaos/4.2.4/" my SDK has a link from "clib2-ts" to "clib" in the same directory. I don't know how or when that link was put in my SDK but compiling with -mcrt=clib2-ts works because of the link.softwarefailure wrote:I just updated to OS4 FE and SDK 53.24, tried to compile a simple C program using
gcc -mcrt=clib2-ts helloworld.c
but it doesn't link because ld can't find libgcc.a. SnoopDOS log shows it's looking for libgcc.a all over the place but it's just not there. Using -mcrt=clib2 works fine but I need the thread-safe variant of clib2.
How to fix this?
Not at all, use whichever you like, but if you were to have answeded because I need access to the AmigaDOS file handles (which was always my reason to sticking to clib2 for a couple of prohects) , I would simply have pointed out that that is available in newlib now.Let's not turn this into another newlib vs clib debate...
I think it's just a small glitch in the SDK fix as we mentioned above by copying the file over or making a link. I never had any issues with clib2-ts and that link.Is this officially unsupported now or what is the current state? Then I'd have to revert to an older SDK.
Here's why: http://www.hollywood-mal.com/docs/html/ ... lib2_.htmlbroadblues wrote: Not at all, use whichever you like, but if you were to have answeded because I need access to the AmigaDOS file handles (which was always my reason to sticking to clib2 for a couple of prohects) , I would simply have pointed out that that is available in newlib now.
Thanks, it's working now.I think it's just a small glitch in the SDK fix as we mentioned above by copying the file over or making a link. I never had any issues with clib2-ts and that link.