Context
- MyProj targets the RT1040 MCU compiles and runs successfully
- MyLib is a Static C Library configured to build for the RT1040, and is configured to use hard FP
- This is lua-5.4.4, for reference (just building liblua.a, not the two executables)
- Both are set (by default) to Cortex-M7 and FPv5-FP-D16 (Hard ABI).
Error
After adding MyLib as a reference for MyProj and configuring the include dirs, linker search path, and adding lua as a library to link, building MyProj results in:
c:/nxp/mcuxpressoide_11.7.0_9198/ide/plugins/com.nxp.mcuxpresso.tools.win32_11.7.0.202209140929/tools/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe: error: MyProj.axf uses VFP register arguments, ../../lua-test/src/\liblua.a(lauxlib.o) does not
...
Both projects' compiler command lines include the options -mcpu=cortex-m7 -mfpu=fpv5-sp-d16 -mfloat-abi=hard -mthumb
Is there anything else I need to configure, or check? Is there a better way to proceed?
Many thanks,
Barrie