Gloria, Jing wrote:
I am trying to install the latest version (20010623) of GPC. However, during the make I get the following error:
-------------------------------------------- In file included from /usr/pgmdev/gcc-2.95.2/gcc/p/gpc-common.c:35: /usr/pgmdev/gcc-2.95.2/gcc/p/util.h:196: conflicting types for `concat' /usr/pgmdev/gcc-2.95.2/gcc/p/../../include/libiberty.h:48: previous declaration of `concat' make[1]: *** [gpc-common.o] Error 1 --------------------------------------------
in include\libiberty.h:48 - extern char *concat PARAMS ((const char *, ...));
in gcc-2.95.2/gcc/p/util.h:196 - extern char *concat PARAMS ((char *, ...));
Pls advise which one is correct. Or is there a switch/directive to disregard this error? I am installing on an Intel x86/Solaris 7 platform using GCC 2.95.2. I pulled down the GCC source from the Sunfreeware site and the GPC source from the GPC site.
For me (djgpp) I have identical prototypes in both files, but the second (util.h) is disabled presumably because it is circumvented by: #ifndef EGCS92 ... #endif But I do not know what it should be for Solaris. Somebody knows ? Maurice -- Maurice Lombardi Laboratoire de Spectrometrie Physique, Universite Joseph Fourier de Grenoble, BP87 38402 Saint Martin d'Heres Cedex FRANCE Tel: 33 (0)4 76 51 47 51 Fax: 33 (0)4 76 51 45 44 mailto:Maurice.Lombardi@ujf-grenoble.fr