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
  • It appears as though i was missing a service pack for my uC. Now I get this error : LCD4Bit.c(12): warning: In file included from...
    C:/Users/cmohe/AppData/Local/Arm/Packs/Keil/TM4C_DFP/1.1.0/Device/Include/TM4C123\tm4c123gh6pm.h:167:10: fatal error: 'core_cm4.h' file not found
    #include "core_cm4.h" /*!< Cortex-M4 processor and core peripherals */
    ^~~~~~~~~~~~
    4 warnings and 1 error generated.
    linking...
    .\Objects\LCD4Bit.axf: error: L6002U: Could not open file .\objects\lcd4bit.o: No such file or directory
    Not enough information to list image symbols.
    Not enough information to list load addresses in the image map.
    Finished: 2 information, 0 warning, 0 error and 1 fatal error messages.
    ".\Objects\LCD4Bit.axf" - 1 Error(s), 4 Warning(s).
    Target not created.
    Build Time Elapsed: 00:00:01

Reply
  • It appears as though i was missing a service pack for my uC. Now I get this error : LCD4Bit.c(12): warning: In file included from...
    C:/Users/cmohe/AppData/Local/Arm/Packs/Keil/TM4C_DFP/1.1.0/Device/Include/TM4C123\tm4c123gh6pm.h:167:10: fatal error: 'core_cm4.h' file not found
    #include "core_cm4.h" /*!< Cortex-M4 processor and core peripherals */
    ^~~~~~~~~~~~
    4 warnings and 1 error generated.
    linking...
    .\Objects\LCD4Bit.axf: error: L6002U: Could not open file .\objects\lcd4bit.o: No such file or directory
    Not enough information to list image symbols.
    Not enough information to list load addresses in the image map.
    Finished: 2 information, 0 warning, 0 error and 1 fatal error messages.
    ".\Objects\LCD4Bit.axf" - 1 Error(s), 4 Warning(s).
    Target not created.
    Build Time Elapsed: 00:00:01

Children