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

ANnoying error msg

I tried to build this programme using ARM. It just recieves user input as keys and stores them in r0.

AREA ConsoleInput, CODE, READONLY IMPORT main IMPORT getkey IMPORT sendchar EXPORT start

ENTRY

start

read BL getkey CMP R0, #0x0D BEQ endRead BL sendchar

B read

endRead

END

But I go this error msg:

linking...
.\main.axf: Warning: L6665W: Neither Lib$$Request$$armlib Lib$$Request$$cpplib defined, not searching ARM libraries.
.\main.axf: Error: L6411E: No compatible library exists with a definition of startup symbol __main.
Not enough information to list image symbols.
Not enough information to list the image map.
Finished: 2 information, 1 warning and 1 error messages.
".\main.axf" - 1 Error(s), 1 Warning(s).
Target not created

I know it's just something stupid but I can't find an answer.

  • This can't be all the code involved, perhaps look at the startup file and what you are calling from there.

    What processor are you building for? How are you handling the reset and vectors?

    For an assembler play remove the call to __main

    Please also review the use of PRE tags when posting source code so it is formatted and readable.