Re: Functions are not loaded?!!

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



ali hagigat <hagigatali@xxxxxxxxx> writes:

> Now I have a new question, so when we want to use a library we must
> put it in the rightmost place of a command line to make sure that all
> the necessary functions are written in the final image by the linker,
> is that right?

On the command line, you must put the library lib.a to the right of all
object files and libraries which use symbols defined by lib.a, and to
the left of all libraries which provide symbols used by lib.a.

This approach can be modified by linker options --whole-archive and
--start-group, q.v.

Ian


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux