Bosch Sensortec Community

    cancel
    Showing results for 
    Search instead for 
    Did you mean: 

    building a project in coines

    building a project in coines

    Gideon
    Long-established Member

    Dear,

     

    I'm trying to build a project in coines but got an error.

    Could you review the error?

     

    c:\COINES\v2.0\examples\c\bhy2\rotation_vector>mingw32-make
    Platform: Windows
    cc: "C:\TDM-GCC-64\bin\gcc.exe".
    [ CC ] bhy2_rotation_vector.c
    [ CC ] ../../../../sensorAPI/bhy2/bhy2_api/bhy2_api.c
    [ CC ] ../../../../sensorAPI/bhy2/bhy2_host_interface/bhy_host_interface.c
    [ CC ] ../../../../sensorAPI/bhy2/bhy2_hal/bhy2_hal.c
    [ CC ] ../../../../sensorAPI/bhy2/bhy2_cus/bhy2_cus.c
    [ MAKE ] coinesAPI
    [ AR ] libcoines-pc.a
    [ LD ] bhy2_rotation_vector.exe
    C:/TDM-GCC-64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../../../../coinesAPI/libcoines-pc.a(comm_intf.o):C:\COINES\v2.0\coinesAPI/pc/comm_intf/comm_intf.c:87: multiple definition of `comm_intf_sensor_info'; ../../../../coinesAPI/libcoines-pc.a(coines.o):C:\COINES\v2.0\coinesAPI/pc/coines.c:96: first defined here
    collect2.exe: error: ld returned 1 exit status
    ../../../../examples/c/examples.mk:146: recipe for target 'bhy2_rotation_vector.exe' failed
    mingw32-make: *** [bhy2_rotation_vector.exe] Error 1

    3 REPLIES 3

    BSTRobin
    Community Moderator
    Community Moderator

    Hello Gideon,

    I tested it on my side, compile successfully. Could we know your configuration?

    BHI2 compiler result.png

    Gideon
    Long-established Member

    Hello Robin,

    What I have to let you know the configuration of?

    Here is the result on coines 2.0 and 2.5. There is no error on 2.5. Please, let me know any ideas. Thanks,

     

    <V2.0>

    c:\COINES\v2.0\examples\c\bhy2\bhy2cli>mingw32-make
    Platform: Windows
    cc: "C:\TDM-GCC-64\bin\gcc.exe".
    [ MKDIR ] build
    [ CC ] hal.c
    [ CC ] bhy2cli.c
    [ CC ] ../../../../sensorAPI/bhy2/bhy2_api/bhy2_api.c
    [ CC ] ../../../../sensorAPI/bhy2/bhy2_host_interface/bhy_host_interface.c
    [ CC ] ../../../../sensorAPI/bhy2/bhy2_hal/bhy2_hal.c
    [ CC ] ../../../../sensorAPI/bhy2/bhy2_cus/bhy2_cus.c
    [ MAKE ] coinesAPI
    [ MKDIR ] _build_pc
    [ CC ] pc/coines.c
    [ CC ] pc/comm_intf/comm_intf.c
    [ CC ] pc/comm_intf/comm_ringbuffer.c
    [ CC ] pc/comm_driver/usb.c
    [ CC ] pc/comm_driver/legacy_usb/legacy_usb_support.c
    [ AR ] libcoines-pc.a
    [ LD ] bhy2cli.exe
    C:/TDM-GCC-64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../../../../coinesAPI/libcoines-pc.a(comm_intf.o):c:\COINES\v2.0\coinesAPI/pc/comm_intf/comm_intf.c:87: multiple definition of `comm_intf_sensor_info'; ../../../../coinesAPI/libcoines-pc.a(coines.o):c:\COINES\v2.0\coinesAPI/pc/coines.c:96: first defined here
    collect2.exe: error: ld returned 1 exit status
    ../../../../examples/c/examples.mk:146: recipe for target 'bhy2cli.exe' failed
    mingw32-make: *** [bhy2cli.exe] Error 1

    <<V2.5>>

    c:\COINES\v2.5\examples\bhy2\examples\bhy2cli>mingw32-make
    Platform: Windows
    cc: "C:\TDM-GCC-64\bin\gcc.exe".
    [ MKDIR ] build/PC
    [ CC ] parse.c
    [ CC ] ../common/common.c
    [ CC ] bhy2cli.c
    [ CC ] ../../../../examples/bhy2/bhy2.c
    [ CC ] ../../../../examples/bhy2/bhy2_hif.c
    [ CC ] ../../../../examples/bhy2/bhy2_parse.c
    [ MAKE ] coines-api
    [ AR ] libcoines-pc.a
    [ LD ] bhy2cli

    BSTRobin
    Community Moderator
    Community Moderator

    Hello Gideon,

    I share my code and configuration files to you. You can compare them with yours.

    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