0

Linker error Error[Lt009]: Inconsistent wchar_t size

Vitaly gravatar image

asked 2017-11-14 14:54:27 +0100

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

edit retag flag offensive close delete report spam

1 answer

Sort by ยป oldest newest most voted
0
sigurdon gravatar image

answered 2017-11-15 11:34:37 +0100

updated 2017-11-15 11:34:50 +0100

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.

edit flag offensive delete publish link more

Comments

Is using IAR 7 an option for you?

Sigurd ( 2017-11-15 11:35:51 +0100 )editconvert to answer

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer. Do not ask a new question or reply to an answer here.

[hide preview]

User menu

    or sign up

Recent questions

Question Tools

Stats

Asked: 2017-11-14 14:54:27 +0100

Seen: 25 times

Last updated: nov. 15