Cannot find entry symbol _start

后端 未结 2 514
广开言路
广开言路 2021-02-13 15:27

My c code on compiling on gcc is giving the error Cannot find entry symbol _start defaulting to 00000. Can anyone tell me why and how to correct it?

The com

2条回答
  •  猫巷女王i
    2021-02-13 16:11

    the -none- part means that your toolchain doesn't build for a particular operating system, so you must define a _start entry point. For non-bare-metal toolchains that build for a particular operating system, _start is provided by the standard library that in order will call main when everything is set up.

提交回复
热议问题