Re: [R] Compiling C codes in Windows

From: Duncan Murdoch <murdoch_at_stats.uwo.ca>
Date: Mon 02 Apr 2007 - 16:21:24 GMT

On 4/2/2007 4:53 AM, Martin Morgan wrote:

> Tong Wang <wangtong@usc.edu> writes:
> 

>> Hi All,
> [...]

>> After I followed all the instructions in " Building R for Windows"
> [...]

>> Anyway, I assumed that I need to run this command in Cygwin
> > No, do this from a DOS shell.

Cygwin is fine as a shell (it's what I use), but the rest of your advice is correct:

 > The usual problems are either missing

> components from the installation steps outlined in Building R for
> Windows, or an incorrect PATH variable so that windows or cygwin
> versions of programs are used rather than MinGW / Rtools.

Duncan Murdoch

> 
> Also, this question belongs on the R-devel list, where those doing
> development work are more likely to see and respond to your
> questions.
> 
> Hope that helps,
> 
> Martin Morgan

>>
>> $ make all recommended
>> make: ./Rpwd.exe: Command not found
>> make[1]: ./Rpwd.exe: Command not found
>> make --no-print-directory -C front-ends Rpwd
>> make -C ../../include -f Makefile.win version
>> make Rpwd.exe
>> gcc -O3 -Wall -pedantic -I../../include -c rpwd.c -o rpwd.o
>> rpwd.c:22:20: direct.h: No such file or directory
>> rpwd.c: In function `main':
>> rpwd.c:42: warning: implicit declaration of function `chdir'
>> rpwd.c:45: warning: implicit declaration of function `getcwd'
>> make[3]: *** [rpwd.o] Error 1
>> make[2]: *** [Rpwd] Error 2
>> make[1]: *** [front-ends/Rpwd.exe] Error 2
>> make: *** [all] Error 2
>>
>>
>> Can I get some help with my quesitons , and some suggestions concerning the best way to solve the whole problem ?
>>
>> THanks a lot for your help..
>>
>> tong
>>
>> ______________________________________________
>> R-help@stat.math.ethz.ch mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-help
>> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
>> and provide commented, minimal, self-contained, reproducible code.
>

R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Tue Apr 03 02:31:44 2007

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Tue 03 Apr 2007 - 08:30:47 GMT.

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