Azure Sphere SDK error when developing on Visual Studio project

Owen Atkinson 41 Reputation points
2020-11-03T17:03:44.71+00:00

Hello,

I've been developing with the Seeed MT3620 Azure Sphere and working to attach an ArduCAM SPI camera to the board and upload images to an Azure Blob.

It's been going great so far, but I have encountered an error which is being flagged from within a file in the Azure Sphere SDK (Scrt1.o function '_start_c') when I attempt to build the project in Visual Studio 2019.

Full error message: C:/Program Files (x86)/Microsoft Azure Sphere SDK/Sysroots/6/tools/gcc/real-ld.exe: C:/Program Files (x86)/Microsoft Azure Sphere SDK/Sysroots/6/usr/lib/Scrt1.o: in function _start_c': /usr/src/debug/musl/1.1.20+gitAUTOINC+c50985d5c8-r0/git/crt/crt1.c:18: undefined reference to main'

If anyone has seen a similar issue or knows about this error, please get in touch.

Thanks,
Owen

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

1 answer

Sort by: Most helpful
  1. AshokPeddakotla-MSFT 34,016 Reputation points
    2020-11-04T06:58:33.663+00:00

    @Owen Atkinson Thanks for reaching out to us!
    Can you please share the documentation you are following for the steps? Does it work before without any errors?

    As per the error it appears to be reference is missing or undefined to main method. Please check the code once again and try. It would be great if you can share the code to understand better.


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.