Warning about multiply defined __P on SunOS
Wolfgang Bangerth
wolf@gaia.iwr.uni-heidelberg.de
Thu Aug 13 04:26:00 GMT 1998
Hi again,
using egcs on SunOS 5.6 I get error messages from the preprocessor,
telling me the following:
In file included from
/usr/local/gcc/egcs-19980803/lib/gcc-lib/sparc-sun-solaris2.6/egcs-2.91.53/include/math.h:5,
from /usr/local/gcc/egcs-19980803/include/g++/cmath:7,
from problem_base.cc:20:
/usr/include/math.h:19: warning: `__P' redefined
/usr/local/include/sys/cdefs.h:80: warning: this is the location of the
previous definition
Actually, I don't know whether this does any harm, but it makes me feel a
bit unsafe. Also, I do not know who is guilty, because the error happens
in standard headers belonging to the system rather than to egcs. Any
simple cure?
Regards,
Wolfgang
More information about the Gcc-bugs
mailing list