|
Re: "Undifined reference to main" Enable to compile a Hello World [message #1708855 is a reply to message #1708830] |
Mon, 21 September 2015 22:58 |
David Vavra Messages: 1426 Registered: October 2012 |
Senior Member |
|
|
If what you are showing is actually what you are trying to compile then you have a syntax error and likely no object file is being produced. The linker would be then be unable to find it to produce an executable. Try changing the "}=he" at the end to "}" and see what happens.
If the problem persists, you will have to supply the particulars of your project configuration. Such as: what kind of project it is; if you changed any Eclipse settings; and your build log. I created a new Hello World project and changed the code to be the same as yours. My build process stopped at the first error. Your build went all the way to the link phase. My project configuration is different than yours but I don't know how.
[Updated on: Mon, 21 September 2015 23:05] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.03644 seconds