Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
94 user(s) are online (75 user(s) are browsing Forums)

Members: 1
Guests: 93

walkero, more...

Support us!

Headlines

Report message:*
 

Re: gcc 9 and 10

Subject: Re: gcc 9 and 10
by sTix on 2021/4/2 15:47:47

@Capehill
Quote:
I have now another issue. I have build SDL2 library using GCC10 and libSDL2.a has some symbols like "IExec" which used to be of type "C" (common) but now they are of type "S". This seems to trigger a linker error about multiple definitions when linking statically. I wonder why the symbol type has suddenly changed?


IExec and INewlib are defined in SDL_os4library.c as unitialized variables so 'S' seems right. I don't know what compiler they (or is that you?) used to build the library on os4depot, but my guess is that it's a compiler where '-fcommon' is default rather than '-fno-common' which seems to be the default on gcc 10. If you add '-fcommon' to the CFLAGS when building, IExec and INewlib should be common 'C' symbols.



Powered by XOOPS 2.0 © 2001-2016 The XOOPS Project