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 in linking!

Note: This was originally posted on 11th December 2010 at http://forums.arm.com

Hello,
    
         I have compiled a sample program in ARM assembly language for LPC2148 using the Keil MDK . After compilation the following error was reported.
                
                              Build target 'Target 1'
                              linking...
                             abc.axf: Warning: L6665W: Neither Lib$$Request$$armlib Lib$$Request$$cpplib defined, not searching ARM libraries.
                             abc.axf: Error: L6411E: No compatible library exists with a definition of startup symbol __main.
                                Target not created

                       How can I recover from this error???

                       Sample Progarm:
                                   GLOBAL Reset_Handler
                                   AREA Reset, CODE, READONLY

                           Reset_Handler
                                 MOV  r0, #0x11
                                 MOV  r1, r0, LSL #1
                                   MOV  r2, r1, LSL #1

                         stop B   stop
                                END
Parents
  • Note: This was originally posted on 12th December 2010 at http://forums.arm.com


                                 abc.axf: Error: L6411E: No compatible library exists with a definition of startup symbol __main.

    The MDK startup code, which you are presumably linking along with your own code, contains a hard coded B __main (or similar). Since you are apparently trying to write your own startup code, it may be a good idea to delete MDK's from your project -- you don't need it. Define your own Reset_Handler as entry point in your program, perhaps using the ENTRY directive in the assembler source code.

    Regards
    Marcus
Reply
  • Note: This was originally posted on 12th December 2010 at http://forums.arm.com


                                 abc.axf: Error: L6411E: No compatible library exists with a definition of startup symbol __main.

    The MDK startup code, which you are presumably linking along with your own code, contains a hard coded B __main (or similar). Since you are apparently trying to write your own startup code, it may be a good idea to delete MDK's from your project -- you don't need it. Define your own Reset_Handler as entry point in your program, perhaps using the ENTRY directive in the assembler source code.

    Regards
    Marcus
Children
No data