2013-11-26 11:30 PM
Hello,
I tried to build on Atollic the precompiled package around the emWin graphical lib(AN4323
).I build for STM322xG-EVAL, but I get two errors:c:/program files (x86)/atollic/truestudio for arm pro 3.3.0/armtools/bin/../lib/gcc/arm-atollic-eabi/4.6.2/../../../../arm-atollic-eabi/lib/thumb/armv7-m\libm.a(lib_a-w_sqrt.o): In function `sqrt':w_sqrt.c:(.text.sqrt+0x7a): undefined reference to `__errno'
w_sqrt.c:(.text.sqrt+0x86): undefined reference to `__errno'I have no idea how to resolve this.Thank you,Pierre2013-11-27 01:47 AM
__errno is part of the C runtime library, not sure how Atollic handles it but you probably need to include LIBC along with LIBM. One way might be to #include <math.h>, <stdlib.h>, or <sys/errno.h>, etc into your application.
2013-11-29 01:07 AM
yes If I add libm in the linker settings, it is better.
Thank you.