05-31-2021 10:28 AM
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
05-31-2021 11:29 AM
Hello Gideon,
I tested it on my side, compile successfully. Could we know your configuration?
06-02-2021 03:38 AM
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
06-09-2021 09:16 AM