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

HOW .... to include library C51s.lib ???

I am doing inline assembly. All works except unresolved external.
OK I KNOW WHY.

BUT HOW DOES ONE INLCUDE THE MISSING LIBRARY IN THE IDE ?

Specifically, what dialog, what text to enter where ?

The "help" says "BL51 inputlist, CxxFPS.LIB, CxxS.LIB NODEFAULTLIBRARY"

... what is this ? ... where is this ?

Project Options for Target ....

BL51 Misc ??? ... but WHERE and WHAT ???

Parents
  • Keil does this by translating all the 'C' source to assembly, and then passing that through the assembler.

    A result of this is that the linker no longer "knows" that you had 'C' source, so it doesn't do all the automatic 'C' support stuff that it otherwise would - including adding all the support libraries.

    One way around this is to ensure that you still have a main() function which is pure 'C' - ie, not translated via assembler. That will ensure that the Linker knows what to do...

    Good night, and may your god go with you.

Reply
  • Keil does this by translating all the 'C' source to assembly, and then passing that through the assembler.

    A result of this is that the linker no longer "knows" that you had 'C' source, so it doesn't do all the automatic 'C' support stuff that it otherwise would - including adding all the support libraries.

    One way around this is to ensure that you still have a main() function which is pure 'C' - ie, not translated via assembler. That will ensure that the Linker knows what to do...

    Good night, and may your god go with you.

Children
No data