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

Error: L6218E: Undefined symbol main

Can anyone please tell me what this error means and how to fix it ?

Build started: Project: LCD3.2
*** Using Compiler 'V5.06 update 7 (build 960)', folder: 'C:\Arm\Keil Suite\ARM\ARMCC\Bin'
Build target 'Target 1'
linking...
.\Objects\LCD3.2: Error: L6218E: Undefined symbol main (referred from __rtentry2.o).
Not enough information to list image symbols.
Not enough information to list load addresses in the image map.
Finished: 2 information, 0 warning and 1 error messages.
".\Objects\LCD3.2" - 1 Error(s), 0 Warning(s).
Target not created.
Build Time Elapsed: 00:00:00

Parents
  • I had some errors in my C file and suppose the linker decided to throw up an error on my main() function for some reason. An extraneous closing brace, now removed, seems to have fixed everything as well as fixing nested comments it didn't like. It builds now but I won't be able to test it on the board until later today.

Reply
  • I had some errors in my C file and suppose the linker decided to throw up an error on my main() function for some reason. An extraneous closing brace, now removed, seems to have fixed everything as well as fixing nested comments it didn't like. It builds now but I won't be able to test it on the board until later today.

Children