Hi All,
I’m using mbedtls (that is already integrated in the sdk). Added the following line to the app’s CMakeLists.txt
target_link_libraries(${target} mbedtls). But getting linker error:
lib/libmbedtls.a(pk.c.obj): In function mbedtls_pk_init': e:\Projects\Quectel\EC200UCNAAR02A06M08_OCPU_CSDK\out\8915DM_cat1_open_release/../../components/net/mbedtls/library/pk.c:52: multiple definition of
mbedtls_pk_init’
lib/core_stub.o:(.text.core_stub.mbedtls_pk_init+0x0): first defined here
lib/libmbedtls.a(pk.c.obj): In function mbedtls_pk_free': e:\Projects\Quectel\EC200UCNAAR02A06M08_OCPU_CSDK\out\8915DM_cat1_open_release/../../components/net/mbedtls/library/pk.c:63: multiple definition of
mbedtls_pk_free’
lib/core_stub.o:(.text.core_stub.mbedtls_pk_free+0x0): first defined here
lib/libmbedtls.a(timing.c.obj): In function mbedtls_timing_set_delay': e:\Projects\Quectel\EC200UCNAAR02A06M08_OCPU_CSDK\out\8915DM_cat1_open_release/../../components/net/mbedtls/library/timing.c:346: multiple definition of
mbedtls_timing_set_delay’
lib/core_stub.o:(.text.core_stub.mbedtls_timing_set_delay+0x0): first defined here
lib/libmbedtls.a(timing.c.obj): In function mbedtls_timing_get_delay': e:\Projects\Quectel\EC200UCNAAR02A06M08_OCPU_CSDK\out\8915DM_cat1_open_release/../../components/net/mbedtls/library/timing.c:356: multiple definition of
mbedtls_timing_get_delay’
lib/core_stub.o:(.text.core_stub.mbedtls_timing_get_delay+0x0): first defined here
collect2.exe: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
Please let me know how to solve this issue.
Thanks,
Prakash