[Rd] make.rtest issue (PR#13388)

ifellows at ucsd.edu ifellows at ucsd.edu
Wed Dec 10 20:40:13 CET 2008


Hello all,

Thanks for all the hard work. I am building the rtest.c example, and I
encountered a linking error. Perhaps the error is mine, but the makefile did
not seem to be able to find graphapp.dll.

C:\R-2.8.0\R-2.8.0\src\gnuwin32\front-ends>make -f make.rtest
gcc  -std=gnu99   -Wall -O2 -pedantic -I.. -I../../include -I../../extra  -c
rtest.c -o rtest.o
gcc  -std=gnu99 -Wl,--stack=0xA00000 -s -o Rtest.exe rtest.o -L../../../bin
-lR -lgraphapp
c:/rtools/mingw/bin/../lib/gcc/mingw32/4.2.1-sjlj/../../../../mingw32/bin/ld
.exe: cannot find -lgraphapp
collect2: ld returned 1 exit status
make: *** [Rtest.exe] Error 1


Changing the relevant line of make.rtest to
	$(CC) $(LINKFLAGS) -o $@ rtest.o -L../../../bin -lR -lRgraphapp
resolved the issue. I searched and could not find any reference to this
problem on the lists.

Cheers,
Ian Fellows



More information about the R-devel mailing list