Skip to content

Duplicate symbol resolution changed between 5.7.4 and 5.8.3 #6807

Closed
@drahnr

Description

@drahnr

Description

  • Type: Bug | Question
  • Priority: Blocker

I am using an SDK for a Winc which I am trying to compile with my project (and is part of my project).
It used to work just fine with 5.7.4 .
Upgrading to 5.8.3 caused this conflict. No other changes were done.

Target
NRF52

Toolchain:
GCC_ARM

Toolchain version:

mbed-cli version:
1.5.1

mbed-os sha:
5.8.3

Expected behavior
Compiling

Actual behavior
Fails to compile due to conflicting decl of close of the Winc SDK Version and the mbed os one.

Steps to reproduce
Upgrade from 5.7.4 to 5.8.3


Question

How to handle multipe conflicting definitions in mbed os with mbed-cli?

Current way of including:

namespace sdk {
extern "C" {
#include "bsp/include/nm_bsp.h"
#include "driver/include/m2m_wifi.h"
#include "driver/include/m2m_ota.h"
#include "socket/include/socket.h"
#include "spi_flash.h"
#include "spi_flash_map.h"
} // extern C
} // namespace sdk

which is then used as

    int8_t ret = sdk::close (handle->id);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions