Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
60 user(s) are online (44 user(s) are browsing Forums)

Members: 0
Guests: 60

more...

Support us!

Headlines




« 1 ... 4 5 6 (7)


Re: gcc 9 and 10
Just can't stay away
Joined:
2007/7/14 21:30
From Lothric
Posts: 1284
@sTix

I have been using GCC 8.3.0. Adding __attribute__((weak)) for these symbols helped also but I decided to fallback from GCC10 to GCC8 because this SDL build is a maintenance release.

I will try to get GCC10 build working on master (SDL 2.0.16).

   Report Go to top

Re: gcc 9 and 10
Just popping in
Joined:
2006/11/30 11:59
From Lund, Sweden
Posts: 137
@Capehill

Yep, weak symbols is probably a better solution than -fcommon.

   Report Go to top

Re: gcc 9 and 10
Just popping in
Joined:
2007/11/25 16:32
From Caen (France)
Posts: 173
@Capehill

Thanks for your help.
I will give my first impressions.
At first I tested gcc10 and gcc09 without success.
Too many errors even with -std=c++11 -mcrt=...
I managed to get my progs compiled with gcc09 with
-std=c++11 -athread=native (or something like that not sure of the syntax).

I compiled a hello prog and a more complex amiga program with sucess.
I notice a problem though.
In one .cc file (located in work:dir2 ) I declared an include like #include "work:dir/file.h"

I had an error during compilation
File not found work:dir2/work:dir/file.h
As you see, there is a bug here.

For the moment, I change the include by /work/dir/file.h in the linux way. I don't really like it.


_________________
Since a lot of months without an amiga to love, I was lost.
Now I feel happiness again with a Sam Flex 800 .
   Report Go to top

Re: gcc 9 and 10
Home away from home
Joined:
2007/9/11 12:31
From Russia
Posts: 6928
@Sodero

I see a few days ago GCC 10.0.3 out, is it ok to ask you if you can bring that one to us as well?:)


@Yescop

Quote:

At first, I tested gcc10 and gcc09 without success.
Too many errors even with -std=c++11 -mcrt=...
I managed to get my progs compiled with gcc09 with
-std=c++11 -athread=native (or something like that not sure of the syntax).


You _should always_ use -athread=native, if you want to compile anything with the latest GCC on OS4. At least for now, while it still not enabled by default.




Edited by kas1e on 2021/4/10 11:58:28
Edited by kas1e on 2021/4/10 11:59:10
_________________
Join us to improve dopus5!
zerohero's mirror of os4/os3 crosscompiler suites
   Report Go to top

Re: gcc 9 and 10
Just popping in
Joined:
2006/11/30 11:59
From Lund, Sweden
Posts: 137
@kas1e
Quote:
I see a few days ago GCC 10.0.3 out, is it ok to ask you if you can bring that one to us as well?:)


I'll fix that. Hopefully next week.

   Report Go to top


« 1 ... 4 5 6 (7)



[Advanced Search]



Powered by XOOPS 2.0 © 2001-2016 The XOOPS Project