Closed milesandersonmn closed 2 years ago
Ok that was quick. For anyone compiling with GCC 11 (and maybe 10), you can append -fcommon to the CFLAGs in line 17 like this:
CFLAGS+= -fstack-protector-all -Wall -O3 -std=c99 -fcommon
If you've already run make without the editted line though, you need to run command "make clean" then run the make command again and it will work.
Thanks, Miles. --Ilan
On Fri, Oct 21, 2022 at 3:50 PM Miles Anderson @.***> wrote:
Closed #86 https://github.com/gphocs-dev/G-PhoCS/issues/86 as completed.
— Reply to this email directly, view it on GitHub https://github.com/gphocs-dev/G-PhoCS/issues/86#event-7640883530, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADO7ILXAO5TDNHFU2Y3VO7LWEKNSDANCNFSM6AAAAAARLFX5FA . You are receiving this because you are subscribed to this thread.Message ID: @.***>
Thanks for posting this. I can confirm that gcc 10.1.0 was giving these compilation errors and adding -fcommon
to CFLAGS
fixed it.
Compiling the Makefile with GCC 11.2.1 throws a multiple definition error:
I'm attempting to set the CFLAGs using -fcommon but so far having no luck. If anyone is aware of an easy way to fix this, I would appreciate it. otherwise I'll continue working on it and update a solution if I find one.