Re: [R] lpSolve doesn't compile because of a malloc.h error

2007-10-02 Thread vittorio
Yes, it was very clear but being an absolute beginner as a programmer I was misled by the presence of both stdlib.h and malloc.h in lpslink55.c (in a nutshell, I thought "Why s it complaining if stdlib.h is there, in the code??"). Anyway, thanks to your help I made it in the end. Ciao Vittorio

Re: [R] lpSolve doesn't compile because of a malloc.h error

2007-10-01 Thread Prof Brian Ripley
Isn't the message rather clear? You need to edit the package sources and replace malloc.h by stdlib.h (or remove the former if the latter is already there, as in this case). And BTW, 'gcc-4.2.2' is unreleased, but imminent (as R 2.6.0 is). On Mon, 1 Oct 2007, vittorio wrote: > Under freebsd 6

[R] lpSolve doesn't compile because of a malloc.h error

2007-10-01 Thread vittorio
Under freebsd 6.2-p7 i386, R 2.5.1,gcc-4.2.2 I'm unable to compile package lpSolve because: hpbsd# R CMD INSTALL lpSolve_5.5.8.tar.gz * Installing to library '/usr/local/lib/R/library' * Installing *source* package 'lpSolve' ... ** libs cc -std=gnu99 -I/usr/local/lib/R/include -I/usr/local/lib/R/