This is the mail archive of the gcc-bugs@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]

Re: is it possible to have namespace separation using gcc?


> How do I get two files to link together that have same names for global 
> functions/variables.

It heavily depends on your operating system, and does not depend on
gcc at all. Neither it is a bug in gcc, therefore gcc-bugs is
certainly the wrong list - use gcc-help instead of help on gcc; use a
help list for your operating system for help not related to gcc.

Hint: If symbols are in different shared libraries, or weak, you can
typically have multiple copies. If you have GNU ld, you can use the
--wrap option.

Regards,
Martin


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