This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Compile errors
- From: Eljay Love-Jensen <eljay at adobe dot com>
- To: Parms singh <list_track at yahoo dot com>, corey taylor <corey dot taylor at gmail dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Mon, 28 Mar 2005 17:00:49 -0600
- Subject: Re: Compile errors
- References: <20050328225148.70548.qmail@web61308.mail.yahoo.com>
Hi Parms,
I strongly recommend avoiding <hash_map.h>, and instead recommend <ext/hash_map> which has symbols in the __gnu_cxx namespace.
If you do want to use the backward compatibility header files, make sure you do not co-mingle backward compatibility header files with C++ compliant header files. I suspect that may cause problems. (For instance, if you use <hash_map.h>, then you should use the non-compliant <iostream.h> and not the C++ compliant <iostream>.)
Otherwise you may run into symbol collisions, such as the one you are running into with the swap symbol already being used.
HTH,
--Eljay