friend templates in gcc-2.8.0 & egcs-1.0.1
Mumit Khan
khan@xraylith.wisc.edu
Sat Jan 31 13:14:00 GMT 1998
On 31 Jan 1998, Alexandre Oliva wrote:
> You may use -fguiding-decls to have a backward-compatible behavior,
> but have in mind that you'll not be programming standard C++. The
> best you can do is to use SGI STL-like compatibility macros. Take a
> look at stl_config.h, as installed by egcs and gcc, and modify your
> code so that it will compile with both outdated compilers and
> Standard-compliant ones.
>
-fguiding-decls, IMO, should not be recommended since then people
have more problems than they started out with (mostly standard library
related ones -- you end up with undefined externals and so on).
Autoconf is the answer. I used the attached macro I use in aclocal.m4.
Regards,
Mumit -- khan@xraylith.wisc.edu
http://www.xraylith.wisc.edu/~khan/
More information about the Gcc
mailing list