Build error with gcc and cortex_m7/gcc/libtouchgfx-float-abi-hard.a
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-01-08 1: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.
- Labels:
-
TouchGFX
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-01-14 8: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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-01-14 4:20 PM
Strange. The int32_t type usually is defined as long, not int. Do you redefine it somewhere?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎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
