robert@ireq.hydro.qc.ca (R.Meunier 8516) (03/21/91)
I am actually evaluating GNU-C++ (g++) compiler on SUN platform.
The problem that arise is using SUN header with g++. It is impossible
to use .h in /usr/include since they have standard c declaration. If
you are using g++ with Sunview and eventually OpenWIN, what have you
done about it?
I have also found that incompatibilite when mixing Sun header file
with g++ (they were others wich were easy to correct)
-----------------------------------------------------------------------
#ifndef CAT
#undef IDENT
#define IDENT(x) x
#define CAT(a,b) IDENT(a)b
#endif
#define mpr_static(name, w, h, d, image) \
struct mpr_data CAT(name,_data) = \
{mpr_linebytes(w,d), (short *)(image), {0, 0}, 0, 0}; \
Pixrect name = {&mem_ops, w, h, d, (caddr_t)&CAT(name,_data)}
-----------------------------------------------------------------------
g++ can't expand that macro (wich work fine with sun compiler of course)
giving a parse error before _data. Anyone have a modification i could
apply to solve the problem.
--
Robert Meunier Institut de Recherche d'Hydro-Quebec
Ingenieur 1800 Montee Ste-Julie, Varennes
Internet: robert@ireq.hydro.qc.ca Qc, Canada, J3X 1S1
maintainer: BASIC mailing list request to basic-request@ireq.hydro.qc.ca