Hi,
I'm using the ARM DS-5 Eclipse IDE.
I'm attempting to link 2 projects (myProj and myProj_bsp). The first one is built on ARM-6 Compiler, meanwhile the second one is built on ARM-5 Compiler. Therefore, I've got the build errors: L6242E cannot link object as its attributes are incompatible with the image attributes. In the console window, I've got the following errors:
....wchart-16 clashes with wchart-32.
....packed-enum clashes with enum_is_int.
I think that the error is due to the data type mismatch between 2 compilers.
Could anybody tell me how to fix this issue ??
Hello again,
Please see the Migration and Compatibility guide, specifically:https://developer.arm.com/documentation/100068/0616/Migrating-from-Arm-Compiler-5-to-Arm-Compiler-6/Default-differences
You will see the default size of wchar is different between the two toolchains. Use -fshort-wchar with Arm Compiler 6 to match the legacy:https://developer.arm.com/documentation/101754/0616/armclang-Reference/armclang-Command-line-Options/-fshort-wchar---fno-short-wchar
Regards
Ronan
Could you tell me more specifically about which part in the settings to use the command ? I put it in the predefined in the image layout of the linker part, but it didn't work.
You can set them in Arm C Compiler 6 > Miscellaneous
Thanks, it works perfectly. How about the enum_is_int error ?? Is there a command to fix that for Arm 6 Compiler ?
I think you should use -fshort_enumshttps://developer.arm.com/documentation/101754/0616/armclang-Reference/armclang-Command-line-Options/-fshort-enums---fno-short-enums