Re: [Rd] bnlearn package compilation failure on MacOSX

From: Marco Scutari <marco.scutari_at_gmail.com>
Date: Thu, 4 Oct 2007 21:47:26 +0200

On Thu 04/10/07, Prof Brian Ripley wrote:
> You've got more serious problems than that: you cannot assume gcc.
> For example on the SunPro compiler I got
>
[snip]
>
> Note that is in C99 mode, and under Linux.

Hmm. I'm able to reproduce at least some of these errors using gcc in ansi mode:

[fizban@~/bnlearn/src]:gcc-4.2 -std=gnu99 -I/usr/share/R/include -I/usr/share/R/include -ansi -Wall -pedantic -std=c99 -fpic -g -O2 -c mutual.information.c -o mutual.information.o mutual.information.c: In function 'mi': mutual.information.c:34: warning: a member of a structure or union   cannot have a variably modified type
mutual.information.c:35: warning: a member of a structure or union   cannot have a variably modified type

I'll work on that. On the other hand I'm still curious: why r-patched-macosx-ix86 uses -std=gnu99 for the ppc arch but not for i386 one?

-- 
Marco Scutari                               
Linux Registered User #341807                  http://counter.li.org
powered by : 
Debian Sid GNU/Linux (SGI-XFS)                       Kernel 2.6.21.3

______________________________________________
R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Received on Thu 04 Oct 2007 - 19:55:55 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 25 Oct 2007 - 11:37:10 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.