This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: is it possible to have namespace separation using gcc?
- To: chamanbagga at hotmail dot com
- Subject: Re: is it possible to have namespace separation using gcc?
- From: "Martin v. Loewis" <martin at loewis dot home dot cs dot tu-berlin dot de>
- Date: Sat, 3 Jun 2000 01:03:19 +0200
- CC: gcc-bugs at gcc dot gnu dot org
- References: <20000602195653.42411.qmail@hotmail.com>
> 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