--
You received this message because you are subscribed to the Google Groups "ThrowTheSwitch Forums" group.
To unsubscribe from this group and stop receiving emails from it, send an email to throwtheswitc...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/throwtheswitch/CAAu8-XEuDTo53P7YEmSqaQXAyK8z_XUAr_uDCSgArm%2BtRaZk7g%40mail.gmail.com.
Are you perhaps running into a situation where it's including both this file and a different file?There must be something different about the two situations. ;)
--
You received this message because you are subscribed to the Google Groups "ThrowTheSwitch Forums" group.
To unsubscribe from this group and stop receiving emails from it, send an email to throwtheswitc...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/throwtheswitch/CAAu8-XEj4bg8--agEX-J_s4UeP65YUEReCvN0pUdJA0%3DQrmhgA%40mail.gmail.com.
I finally found the problem . GCC linker changed behavior where this "ambiguous" multiple same global variables was accepted by default and as of 10.0 , it is an error by default . Linker flag -fcommon restores the previous behavior , but is not recommended (flag -fno-common is now the default) .
Explanation : https://stackoverflow.com/questions/69908418/multiple-definition-of-first-defined-here-on-gcc-10-2-1-but-not-gcc-8-3-0
I put the following in my project.yml :
:flags:
:test:
:compile:
:*:
- -fcommon
:link:
:*:
- -fcommon
This works and allows my projects to run as before .
What happened was that when I first setup my Ceedling / Unity tools , I found something that worked and didn't think too hard about it , but now I see the true error in my setup . I think I can figure out the correct way to restructure these defines , but at least now the pressure is off and I can get back to the tasks which have been piling up ever since this upgrade started lol .
Thanks !
--David