This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Undefined symbol main (referred from rtentry2.o

some one please give a comprehensive solution to get rid of this nonsense error.
dont tell phrases like "make a dummy main". explain thoroughly.

Parents
  • I think you are probably missing a C file in your project. With the same name as the .o file.
    The compiler is supposed to compile a C file to a object file. And the linker is supposed to
    use the .o file with the same base name as the C file. Maybe I did not explained 100 percent
    correct. From the errors that I have had if I add the C file to the project and that type of error will go away.

Reply
  • I think you are probably missing a C file in your project. With the same name as the .o file.
    The compiler is supposed to compile a C file to a object file. And the linker is supposed to
    use the .o file with the same base name as the C file. Maybe I did not explained 100 percent
    correct. From the errors that I have had if I add the C file to the project and that type of error will go away.

Children