0.65/AIX
Thomas Vogels
Thomas Vogels <tov@ece.cmu.edu>
Tue, 13 Jul 1999 09:07:51 -0400
"Martin" == Martin Maechler <maechler@stat.math.ethz.ch> writes:
KH> Martin: With the recent change of adding -D_XOPEN_SOURCE_EXTENDED I
KH> cannot get artihmetic.c to compile---it dies because of undefined
KH> acosh etc.
Martin> Compilation dies ??
../../../src/main/arithmetic.c: In function `do_math1':
../../../src/main/arithmetic.c:868: `acosh' undeclared (first use in this function)
KH> Is this specific of the system that I have access to?
Martin> The AIX system I have acess to {uname -a ==> AIX percol 2 4 000333104600}
Martin> is fine here..
Uh, I'm afraid it's not the AIX version, it may be gcc vs. cc
Simply try (I compile in a separate build directory)
cc -E -I. -I../include -I../../../src/include -DHAVE_CONFIG_H -g -O2 \
-D_XOPEN_SOURCE_EXTENDED=1 ../../../src/main/arithmetic.c | grep \
acosh
which should return "extern double acosh(double);"
Three cases, two compilers on an AIX 4.2 box:
-U_XOPEN_SOURCE_EXTENDED - gcc (2.8.1) and cc ok
-D_XOPEN_SOURCE_EXTENDED=1 - gcc fails (no declaration of acosh), cc ok
-D_XOPEN_SOURCE_EXTENDED=2 - gcc and cc ok, both with warnings about
redefining _XOPEN_SOURCE_EXTENDED
Sorry, but why do you need _XOPEN_SOURCE_EXTENDED to be defined? And
why does -D_XOPEN_SOURCE_EXTENDED=2 work, albeit noisely?
Thanks,
-tom
--
mailto:tov@ece.cmu.edu (Tom Vogels) Tel: (412) 268-6638 FAX: -3204
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._