This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Linker error Error[Lt009]: Inconsistent wchar_t size

Hi! I have download nRF5_SDK_14.1.0, and I have IAR Embedded Workbench IDE ARM 8.20.1

I want compile ble_app_eddystone.eww from examples, but have error:

Error[Lt009]: Inconsistent wchar_t size occ_lib_occ_curve25519.c.o(occ_lib_nrf52_iar.a) and 4 other objects have wchar_t size 16 bits aes.o and 74 other objects, some of them in dl7M_tlf.a and 10 other libraries have wchar_t size 32 bits

What is this? What can I do for build this project?

My chip is 52832, workspace is ble_app_eddystone_pca10040_s132.ewp

Parents
  • Hi,

    SDK 14.1 uses IAR Workbench 7.80.4 for testing and verification. IAR 7.x uses 16 bit wchar_t, but IAR 8.x uses 32 bit wchar_t. More information about this from IAR can be found here.

    The SDK contains precompiled libraries, some of which are not open, which are built using IAR 7 with the wchar_t size of 16 bits. Since IAR 8 uses wchar_t size of 32 bits, there is a mismatch between the precompiled libraries and the newly compiled project code, and the build fails. SDK 14.1 is therefore not fully compatible with IAR 8.

Reply
  • Hi,

    SDK 14.1 uses IAR Workbench 7.80.4 for testing and verification. IAR 7.x uses 16 bit wchar_t, but IAR 8.x uses 32 bit wchar_t. More information about this from IAR can be found here.

    The SDK contains precompiled libraries, some of which are not open, which are built using IAR 7 with the wchar_t size of 16 bits. Since IAR 8 uses wchar_t size of 32 bits, there is a mismatch between the precompiled libraries and the newly compiled project code, and the build fails. SDK 14.1 is therefore not fully compatible with IAR 8.

Children
Related