2023-05-29 04:55 AM
define the global variables inside a variables.h file, and was possible to use within several procedures (*.c) only informing with #define "variables.h". In this version it isn't possible.
How can I declare the global variables ?
Thank you for your attention,
Best regards, Ilson
Solved! Go to Solution.
2023-05-29 08:46 AM
Use extern definitions in the include file and define them ONCE in a SINGULAR .C file
2023-05-29 08:34 AM - edited 2023-11-20 04:27 AM
Hello. I think the change in GCC 10 to put -fno-common as default is causing your problems. CubeIDE 1.9.0 was first to use GCC 10 as default toolchain.
Try to add -fcommon flag to C/C++ miscellanous options.
2023-05-29 08:46 AM
Use extern definitions in the include file and define them ONCE in a SINGULAR .C file
2023-05-29 09:37 AM
Thank you for your fast response.
2023-05-29 09:38 AM
Thank you for you attention. I'll see this suggestion.