From ripley at stats.ox.ac.uk  Tue Jun 26 09:37:30 2007
From: ripley at stats.ox.ac.uk (Prof Brian Ripley)
Date: Tue, 26 Jun 2007 08:37:30 +0100 (BST)
Subject: [Rd] R routine standalone
In-Reply-To: <648527.84229.qm@web26907.mail.ukl.yahoo.com>
References: <648527.84229.qm@web26907.mail.ukl.yahoo.com>
Message-ID: <Pine.LNX.4.64.0706260830280.18828@gannet.stats.ox.ac.uk>

You have not told us your OS nor version of R.

The file src/nmath/standalone/README in the R sources will either tell you 
how to do this or point you to the current documentation (depending on the 
R version).

At a guess (since you use 'project' and don't have the correct case on 
your file names) you are working with Visual Studio or similar under 
Windows.  In that case you are on your own: the R developers only support 
the use of MinGW on Windows (but see README.packages for some hints 
which you should be able to adapt to link to Rmath.dll).


On Mon, 25 Jun 2007, Gatsu wrote:

> I'm writing a C program and I'd like to include in it
> some R routine (quantile functions, typically).
>
> I found the functions I have to use (qnorm.c qbeta.c
> ecc) e some include (nmath.h rmath.h ecc).
>
> But I can't compile the project, I receive linker
> error.
>
> Somebody can help me?
>
> I say, if I want to include qbeta (for example) in a
> project of mine, what should I do?
>
>
>      ___________________________________
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>

-- 
Brian D. Ripley,                  ripley at 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



[Rd] R routine standalone
Prof Brian Ripley