configure question
configure question
I wonder about configure, which run-time library does it use? for instance in one program it goes through the configuration but when you do a make, the compiler (gcc 11.2) starts complaining about several functions already being defined in newlib? isn't newlib default for --mcrt
Re: configure question
Can't say which run-time libs, as never needs to worry about, but when you run configure it just create for you .h files with all necessary defines, which, not 100% will works as it when you will build code (running make) with those defines taken from when you run configure. There can be all sorts of differences, like starting from the moment that you simple mistakenly forget to add to configure "--build=x86_64 --host=ppc-amigaos --target=ppc-amigaos" and ends up with all sort differences like the header is present, some function is checked and present by configure, and take it for granted that every function of "this kind" will be in, but in reality, it is not.I wonder about configure, which run-time library does it use? for instance in one program it goes through the configuration but when you do a make, the compiler (gcc 11.2) starts complaining about several functions already being defined in newlib?
So, the usual rule you just check what functions fail, and check by simple test case if it works for real on os4. Then even if simple test compiles, you need to be sure it links fine as well and so on, that will mean that function is here and should work and then find out why it didn't in your code which can't be compiled (which then, will be the fault of the code itself).
Yep default mean --mcrt=newlibisn't newlib default for --mcrt