[R] problems with R COMPILE in make
Peter Holzer
holzer at stat.math.ethz.ch
Mon Sep 4 11:23:54 CEST 2000
Dear R helpers
I have a problem with R COMPILE. While the Makefile consisting of the lines
SOURCES = imageio.c procbase.c readargs.c regSegs.c goodiesPH.c \
generalAnalysis.c edgeAggregation.c utilities.alga.c \
cs.parametrizing.c
tst.so: $(SOURCES)
R SHLIB -o $@ $(SOURCES)
works fine, the Makefile with the target replaced by
imageio.o: imageio.c
R COMPILE imageio.c
results in
cd /u/holzer/CurrentWork/algen/C/
make
R COMPILE imageio.c
make[1]: Entering directory `/users/u1/staff/holzer/CurrentWork/algen/C'
R COMPILE imageio.c
make[2]: Entering directory `/users/u1/staff/holzer/CurrentWork/algen/C'
make[2]: *** No rule to make target `w'. Stop.
make[2]: Leaving directory `/users/u1/staff/holzer/CurrentWork/algen/C'
make[1]: *** [imageio.o] Error 2
make[1]: Leaving directory `/users/u1/staff/holzer/CurrentWork/algen/C'
make: *** [imageio.o] Error 2
Compilation exited abnormally with code 2 at Mon Sep 4 10:41:57
However, if I add $ as a typo (or at least, when I did it, it was just a typo)
$imageio.o: imageio.c
R COMPILE imageio.c
everything works fine again. Do I miss something there?
I have one more question concerning compilation. I don't like the option
-Wcomment, so when I use -Wall for myself I add -Wno-comment. However, when
setting PKG_CFLAGS = -Wno-comment in file `Makevars' this doesn't help. I
suppose the reason is that the -Wall option comes then _after_ the
-Wno-comment option. Is there a way around that?
Thanks for any help
Peter
> version
_
platform i686-pc-linux-gnu
arch i686
os linux-gnu
system i686, linux-gnu
status
major 1
minor 1.1
year 2000
month August
day 15
language R
____________________________________________________________
Peter Holzer phone: + 41 1 632 46 34
Seminar fuer Statistik, LEO C14 fax: + 41 1 632 12 28
(Leonhardstr. 27) <holzer at stat.math.ethz.ch>
ETH (Federal Inst. Technology)
8092 Zurich http://www.stat.math.ethz.ch/~holzer/
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help 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-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
More information about the R-help
mailing list