How to add new flag to build a extra library
Hello
I am a beginner. I am trying to build my project using the minmea library but I got a "timegm" warning.
In the library page says <Some systems lack timegm. On these systems, the recommended course of action is to build with -Dtimegm=mktime which will work correctly as long the system runs in the default UTC timezone.>. I added the -Dtimegm=mktime in this places in my project setting
MCU GCC Compiler >> Miscellaneous >> Add other flags
MCU GCC Linker >> Miscellaneous >> Add other flags
but still I have the messages or warining
How to solve it. I am using STM32CubeIDE 1.4
../Drivers/minmea/Src/minmea.c: In function 'minmea_gettime':
../Drivers/minmea/Src/minmea.c:635:24: warning: implicit declaration of function 'timegm'; did you mean 'time'? [-Wimplicit-function-declaration]
time_t timestamp = timegm(&tm); /* See README.md if your system lacks timegm(). */
^~~~~~
time
12:02:11 Build Finished. 0 errors, 1 warnings. (took 9s.351ms)