This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Symbols across two libraries



I have two C libraries in my project, both build cleanly, and one library calls functions in the other.  When I build the project that uses these two libraries I get unresolved symbols on all the functions library 1 calls in library 2.

Is there a linker setting I need to set to be able to have one library call another or is it not possible to use more than one library which calls another?

thanks,

-ed

  • Ed,

    Are you using the linker option --reread_libs, I believe that should do it. It is documented in the Assembly Language Tools Users Guide. Not sure which device you are working with, but here is a link to the C6x guide (see section 7.4.13.3).

  • Well, this had to do with moving the created library after it was built.  If I put a linker output destination the archiver fails and apparently there is some problem with symbols. If I just move the library from the default directory manually it builds fine.  Doesn't make sense to me, but I guess I'll manually move it now.