Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
172 user(s) are online (52 user(s) are browsing Forums)

Members: 0
Guests: 172

more...

Support us!

Headlines

 
  Register To Post  

« 1 ... 5 6 7 (8) 9 10 11 ... 21 »
Re: gcc 9 and 10
Just can't stay away
Just can't stay away


See User information
@walkero

Probably adding "extern" in global.h will help, and then defining those symbols in one C file only.

Go to top
Re: gcc 9 and 10
Just popping in
Just popping in


See User information
If you have a globals header file you can have something like

#ifndef DOXYGEN_SHOULD_SKIP_THIS

#ifdef ALLOCATE_GLOBALS
    #define GLOBAL_PREFIX 
    #define GLOBAL_VAL(x)    = x
#else
    #define GLOBAL_PREFIX extern
    #define GLOBAL_VAL(x)
#endif

#endif         /* #ifndef DOXYGEN_SHOULD_SKIP_THIS */

GLOBAL_PREFIX const char *G_NAME_S GLOBAL_VAL ("name");
GLOBAL_PREFIX int g_log_level GLOBAL_VAL (1);



then in one of the c source files have

#define ALLOCATE_GLOBALS (1)


before the

#include "globals.h"

line in that particular file and it will define and declare the variables just fine

Go to top
Re: gcc 9 and 10
Site Builder
Site Builder


See User information
Thanks again for your proposals.
The reason I mentioned this problem in this thread is because I thought that this might be a problem of the GCC 10 itself. Let's don't derail the thread further.

I really appreciate your feedback guys. Thanks again.

Follow me on
Ko-fi, Twitter, YouTube, Twitch
Go to top
Re: gcc 9 and 10
Home away from home
Home away from home


See User information
@all

Since today a rather essential (at least for me) fix regarding dynamic casts/shared builds has been merged to adtools, could someone please compile a new version, so I can test locally?

Thanks a lot

See here: https://github.com/sba1/adtools/pull/101

Go to top
Re: gcc 9 and 10
Just popping in
Just popping in


See User information
@Raziel

I'll see if I can get some time to do this during the weekend.

Go to top
Re: gcc 9 and 10
Home away from home
Home away from home


See User information
@sTix

Looking forward to it, thank you very much

If you don't find time, no problem...let's keep it fun

Go to top
Re: gcc 9 and 10
Just popping in
Just popping in


See User information
@Raziel

Ok, I just did a blind build while at work. A haven't tested it at all so take it for what it is, it might kill your cat and steal your car:

https://github.com/sodero/adtools/releases/tag/10.3.0_2

Go to top
Re: gcc 9 and 10
Home away from home
Home away from home


See User information
@sTix

Whee, thanks...off to test...

Go to top
Re: gcc 9 and 10
Home away from home
Home away from home


See User information
@sTix

Resized Image

Go to top
Re: gcc 9 and 10
Just popping in
Just popping in


See User information
@Raziel

Excellent :)

Go to top
Re: gcc 9 and 10
Home away from home
Home away from home


See User information
@sTix

Compiled a full scale ScummVM with all engines...that rc is working for me

Thank you very much

Go to top
Re: gcc 9 and 10
Just popping in
Just popping in


See User information
@Raziel

Very good to hear. I'm finally preparing a PR for the main repo now so that we'll have less confusion and maintenance in the (hopefully no so distant) future.

Go to top
Re: gcc 9 and 10
Just can't stay away
Just can't stay away


See User information
@sTix

Thanks for the latest release. Compiled succesfully a couple of C++ projects.

Go to top
Re: gcc 9 and 10
Just popping in
Just popping in


See User information
@Capehill

Nice. I opened a PR in the main repo for gcc 10. There was some confusion in that thread as to why this release works. Would be good to avoid that in the future :)

Go to top
Re: gcc 9 and 10 and 11
Just popping in
Just popping in


See User information
If anyone would like to try 11.1.0 out, a build can be found here:

https://github.com/sodero/adtools/releases/tag/10.3.0_1


Go to top
Re: gcc 9 and 10 and 11
Home away from home
Home away from home


See User information
@sTix

Will do asap, but

1) Why is it tagged 10.3.0_1 (instead of 11.1.0) and
2) What are the differences to 10.3.0_2?
(https://github.com/sodero/adtools/releases/tag/10.3.0_2)

Go to top
Re: gcc 9 and 10 and 11
Just popping in
Just popping in


See User information
@Raziel

I just used that release as a dump for the binaries. 11.1.0 contains everything that 10.3.0_2 does. It's a mess that I should fix. I see that there's a Travis file in the adtools repo, but it seems broken. That should be fixed so that we could build rc:s, finals and so on and automatically publish them somewhere.

Go to top
Re: gcc 9 and 10 and 11
Home away from home
Home away from home


See User information
@sTix

Understood, will get to testing tomorrow and report back.

Thank you

Go to top
Re: gcc 9 and 10 and 11
Just popping in
Just popping in


See User information
@sTix

Quote:
If anyone would like to try 11.1.0 out, a build can be found here:


Thanks for the update! Tried compiling 2 projects. No problems.

I also tried "-flto" but it doesn't work when building natively.

Go to top
Re: gcc 9 and 10 and 11
Home away from home
Home away from home


See User information
@IamSONIC

lto not working natively is a known bug.
There is either something missing natively or something broke while porting.

@sTix

Just did a full build of ScummVM with 11.1.0...works like a charm.

I can also report that -fanalyze is working, but it's not really something to use commonly, more like only for bug hunting, since it demands a lot of cpu power.

Go to top

  Register To Post
« 1 ... 5 6 7 (8) 9 10 11 ... 21 »

 




Currently Active Users Viewing This Thread: 3 ( 0 members and 3 Anonymous Users )




Powered by XOOPS 2.0 © 2001-2023 The XOOPS Project