Xref: utzoo comp.lang.c++:12344 gnu.g++.help:627 Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!s3!robert From: robert@ireq.hydro.qc.ca (R.Meunier 8516) Newsgroups: comp.lang.c++,gnu.g++.help Subject: G++ and SunView Message-ID: <6142@s3.ireq.hydro.qc.ca> Date: 20 Mar 91 16:10:09 GMT Sender: root@s3.ireq.hydro.qc.ca Reply-To: robert@ireq.hydro.qc.ca () Organization: IREQ, Hydro-Quebec, QC, Canada Lines: 34 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