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

Can I add more than one gnu library to keil gcc project?

Now my project seems only see the 1st library, but complains can not found other libraries. I've add all other libaries include path .I am use mt2523 chip. I've also add all libraries(.a file) to my project.

Parents Reply Children
  • I seem to recall the GNU/LD linker is single pass, not really spent much time thinking about Keil's

    Andrew's point is that the library is typically a collection of objects, and the linker only takes what it needs to address an external dependency. If you never call a function within the second library it is going to ignore it. If it takes an object that might create additional dependencies, and those might be closed by other functions/objects in the library, or spill over into other libraries/objects. If the first object gets you to closure, the second isn't used.

  • Yes, if I take the 1st library out from the Option->include libraries, then it see the second.