Bosch Sensortec Community

    cancel
    Showing results for 
    Search instead for 
    Did you mean: 

    Bsx lite arm5 compiler error

    Bsx lite arm5 compiler error

    IAnab123
    New Poster

    I am getting a  Error: L6242E: Cannot link object BsxFusionLibrary.o as its attributes are incompatible with the image attributes.
    ... wchart-16 clashes with wchart-32.
    Every time i use the bsx lib
    I am using the arm5 compiler 
    any ideas why is that hapenning ?? 

    8 REPLIES 8

    zgg
    Long-established Member

    Hi

    the link: https://www.keil.com/support/docs/3975.htm

    applies to both Keil 5 and Keil 6 (Information in this knowledgebase article applies to:)

    • Keil MDK v5.23 or later

    CAUSE

    In Arm Compiler 5, the default size of the wchar_t type is unsigned short, which is two bytes. In Arm Compiler 6, the default size of the wchar_t type is unsigned int, which is four bytes. The difference can be represented by the following default options:

    Arm Compiler 5: --wchar16 //unsigned short
    Arm Compiler 6: -fno-short-wchar //unsigned int

    BSTRobin
    Community Moderator
    Community Moderator

    Hello zgg,

    Could you compile successfully?

    zgg
    Long-established Member

    Hi BSTRobin

    I'd love to try to compile myself, but unfortunatley I don't have a license for the ARM DS.

    The link provided may work or may not, it's just provided as a couteous reference in the hope it help, but I think it is very relevant and worth a try by someone who has a ARM DS license, as far as I remember, a similar issue was solved a few years ago when I did have an ARM compiler license.

    BSTRobin
    Community Moderator
    Community Moderator

    Hello zgg,

    You could try some free GCC compilers.

    Icon--AD-black-48x48Icon--address-consumer-data-black-48x48Icon--appointment-black-48x48Icon--back-left-black-48x48Icon--calendar-black-48x48Icon--center-alignedIcon--Checkbox-checkIcon--clock-black-48x48Icon--close-black-48x48Icon--compare-black-48x48Icon--confirmation-black-48x48Icon--dealer-details-black-48x48Icon--delete-black-48x48Icon--delivery-black-48x48Icon--down-black-48x48Icon--download-black-48x48Ic-OverlayAlertIcon--externallink-black-48x48Icon-Filledforward-right_adjustedIcon--grid-view-black-48x48IC_gd_Check-Circle170821_Icons_Community170823_Bosch_Icons170823_Bosch_Icons170821_Icons_CommunityIC-logout170821_Icons_Community170825_Bosch_Icons170821_Icons_CommunityIC-shopping-cart2170821_Icons_CommunityIC-upIC_UserIcon--imageIcon--info-i-black-48x48Icon--left-alignedIcon--Less-minimize-black-48x48Icon-FilledIcon--List-Check-grennIcon--List-Check-blackIcon--List-Cross-blackIcon--list-view-mobile-black-48x48Icon--list-view-black-48x48Icon--More-Maximize-black-48x48Icon--my-product-black-48x48Icon--newsletter-black-48x48Icon--payment-black-48x48Icon--print-black-48x48Icon--promotion-black-48x48Icon--registration-black-48x48Icon--Reset-black-48x48Icon--right-alignedshare-circle1Icon--share-black-48x48Icon--shopping-bag-black-48x48Icon-shopping-cartIcon--start-play-black-48x48Icon--store-locator-black-48x48Ic-OverlayAlertIcon--summary-black-48x48tumblrIcon-FilledvineIc-OverlayAlertwhishlist