<HTML>
<HEAD>
<TITLE>Question on 5.6 Interfacing C++ code</TITLE>
</HEAD>
<BODY>
<FONT FACE="Arial"><SPAN STYLE='font-size:12pt'>Hi, I have a quick couple of questions about some of the documentation on the web page:<BR>
<a href="http://cran.r-project.org/doc/manuals/R-exts.html#Linking-GUIs-and-other-front_002dends-to-R">http://cran.r-project.org/doc/manuals/R-exts.html#Linking-GUIs-and-other-front_002dends-to-R</a><BR>
under the heading:<BR>
5.6 Interfacing C++ code<BR>
<BR>
Question 1:<BR>
If I&#8217;m at a terminal, I can type the instructions they suggest:<BR>
R CMD SHLIB X.cc X_main.cc<BR>
If I wanted a package to do this, how would I tell the package to do that same thing?<BR>
Would I use the same command and just include it in a file somewhere in the package?<BR>
If so, which file?<BR>
<BR>
Question 2:<BR>
</SPAN></FONT><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:10.5pt'>dyn.load(paste(&quot;X&quot;, .Platform$dynlib.ext, sep = &quot;&quot;))<BR>
<BR>
Where does .Platform$dynlib.ext come from?<BR>
What does it mean?<BR>
What do it&#8217;s components .Platform and $dynlib and .ext mean?<BR>
<BR>
Thanks,<BR>
<BR>
Sean<BR>
</SPAN></FONT><FONT FACE="Arial"><SPAN STYLE='font-size:12pt'><BR>
<BR>
<BR>
</SPAN></FONT>
</BODY>
</HTML>