cancel
Showing results for 
Search instead for 
Did you mean: 

Build error with gcc and cortex_m7/gcc/libtouchgfx-float-abi-hard.a

MNils.2
Associate

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.

1 ACCEPTED SOLUTION

Accepted Solutions

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

View solution in original post

3 REPLIES 3
Jacob WOODRUFF
ST Employee

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

Pavel A.
Evangelist III

Strange. The int32_t type usually is defined as long, not int. Do you redefine it somewhere?

 

 

 

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