C++ with Azure Sphere SDK

ivan 100 Reputation points
2023-04-27T09:27:25.8366667+00:00

Hello,

I wonder if Azure Sphere SDK supports C++.

I can't find an stdc++ library on Sysroots of the Azure Sphere SDK directory.

my simple blink C++ project can't build as below since can't find the stdc++ library.


Blink *blink = new Blink(TEMPLATE_LED);


main.cpp:11: undefined reference to `operator new(unsigned int)'

Thanks.

Azure Sphere
Azure Sphere
An Azure internet of things security solution including hardware, operating system, and cloud components.
168 questions
0 comments No comments
{count} votes

Accepted answer
  1. AshokPeddakotla-MSFT 34,616 Reputation points
    2023-04-27T10:45:17.8466667+00:00

    @ivan Greetings!

    Azure Sphere supports C++ development. However, the Azure Sphere SDK does not include the standard C++ library.

    There is a blink demo with C++ support here. Please check and let us know if that helps.

    Please follow the guidelines on how to run the sample.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.