This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: -no-undefined option


Lin George <george4academic@yahoo.com> writes:

> Thank you for your comments. I think if "--no-undefined" error does
> not exist, when building the shared library, the external
> dependencies should not be solved (means, linker will not find
> exported symbol is actually implemented), right?

If I understand you correctly, then that is right.

> When we add the option, when building a shared library, linker will
> find all imported external symbols are implemented (i.e. defined) by
> other modules.

Yes, it will give an error if any symbol is not defined somewhere.

Ian


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]