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
0