2025-01-08 01:39 AM
Hi,
how exactly is the cortex_m7/gcc/libtouchgfx-float-abi-hard.a built (i.e compile and link options)?
For example if a make a object dump on the lib I get:
touchgfx::muldiv(long, long, long)
But the header file use int32_t instead of long and that gives a link error.
undefined reference to `touchgfx::muldiv(int, int, int)
If I change the header file to use long instead it builds.
Solved! Go to Solution.
2025-01-14 11:38 PM
I´m using Zephyr toolchain, apperently the default definition of int32_t is int in Zephyr.
However there is a config option for this that solves my problem.
CONFIG_ENFORCE_ZEPHYR_STDINT=n
2025-01-14 08:37 AM
Hi All,
This post has been escalated to the ST Online Support Team for additional assistance. We'll contact you directly.
Regards,
Jake
ST Support
2025-01-14 04:20 PM
Strange. The int32_t type usually is defined as long, not int. Do you redefine it somewhere?
2025-01-14 11:38 PM
I´m using Zephyr toolchain, apperently the default definition of int32_t is int in Zephyr.
However there is a config option for this that solves my problem.
CONFIG_ENFORCE_ZEPHYR_STDINT=n