[R] RCMD SHILB uses g++ instead of gcc

From: Vumani Dlamini <dvumani_at_hotmail.com>
Date: Fri 17 Feb 2006 - 22:02:54 EST

I am using RCMD SHLIB to make a dll from the convolve2.c code presented with R-exts. After an e-mail from Prof Ripley, I noticed that SHLIB is using a C++ compiler instead of a C compiler for the code.

Have searched the R-site and the internet for answers and noticed that it is possible to change the "makeconf" and "makefile" files to correct this. But these files are not present in my system. I downloaded "R-2.2.1pat-win32.exe" and installed the traditional windows way.

Thanks for your responses.

Full_Name: Vumani Dlamini
Version: 2.2.1 Patched
OS: Microsoft Windows XP Professional

>From: Prof Brian Ripley <ripley@stats.ox.ac.uk>
>To: Vumani Dlamini <dvumani@hotmail.com>
>CC: r-help@stat.math.ethz.ch
>Subject: Re: [R] symbol decoration and .Call
>Date: Thu, 16 Feb 2006 13:12:25 +0000 (GMT)
>1) Please read the posting guide and use the appropriate list, not R-help.
>2) Please tell us exactly what you did, including your OS, R version and so
>on as the guide asks. Looks to me like you used a C++ compiler to compile
>On Thu, 16 Feb 2006, Vumani Dlamini wrote:
>>Dear R-users,
>>I am a novice user of .Call and am trying to use the C code in R-Ext to
>>kickstart my learning process. All the code compiles but when I try to use
>>.Call it gives the error (using "out.c" as an example),
>>Error in .Call("out", x, y) : C entry point "out" not in load table
>>when i use PEDUMP to check whether the symbol is loaded I find that it is
>>loaded as "_Z3outP7SEXPRECS0_" and when I use this instead of "out" the
>>program work.
>>How can I remove the decoration so that only "out" is loaded?
>>Thanks, Vumani
>>R-help@stat.math.ethz.ch mailing list
>>PLEASE do read the posting guide!
>Brian D. Ripley, ripley@stats.ox.ac.uk
>Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
>University of Oxford, Tel: +44 1865 272861 (self)
>1 South Parks Road, +44 1865 272866 (PA)
>Oxford OX1 3TG, UK Fax: +44 1865 272595

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 Received on Fri Feb 17 22:20:32 2006

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:42:34 EST