is it possible to have namespace separation using gcc?

Martin v. Loewis martin@loewis.home.cs.tu-berlin.de
Fri Jun 2 16:14:00 GMT 2000


> 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



More information about the Gcc-bugs mailing list