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

help- URGENT build errors while using gcc


Hi,

I am getting errors of this type =>

/vobs/snps/syn/uisyn/schem/gen/gen_int_struct.h:53: `typedef struct 
pair_struct * pair'
redeclared as different kind of symbol
/depot/gcc-2.95.2-OS7/lib/gcc-lib/sparc-sun-solaris2.7/2.95.2/../../../../include/g++-3/stl_pair.h:37:
previous declaration of `template <class _T1, class _T2> struct 
pair<_T1,_T2>'

This is because i have a set of old files (created even before the creation 
of the c++ std
libraries) these files have user defined data types named as "set" and 
"pair". and there is a
conflict between these two and the "Stl" set and pair datatypes.

Is there any way to avoid these errors? i need to use the stl variables too 
but they are in other
files, which are also part of teh same project, the stl set and teh old set 
are used in two
different files. the ordinary CC compilation does not give me these errors!!

Can you tell me how to tackle  this??

-Thanks
Radhika


_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


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