Displaying 20 results from an estimated 500 matches similar to: "building a Win32 DLL with R objects?"
2004 Jun 30
1
AS_NUMERIC and as.numeric - Could someone explain?
Dear List,
I stepped into a strange effect which I can't explain to myself
(probably due to lack of knowledge on R internals).
I have four vectors a,b,c and z of size 10000 each. With these vectors I
call
.Call("hyp2f1forrey", a, b, b, z, PACKAGE = "hyp2f1")
to access
SEXP hyp2f1forrey(SEXP a, SEXP b, SEXP c, SEXP x)
{
int i,n;
double *xa, *xb, *xc, *xx,
2010 Jun 15
1
Error when callin g C-Code
Hi
when I call the function below in R, i get the error: Object 'pairlist'
can't be converted to 'double'.
#include <R.h>
#include <Rdefines.h>
#include <Rmath.h>
SEXP CSimPoisson(SEXP lambda, SEXP tgrid, SEXP T2M, SEXP Ni, SEXP NT)
{
double sign, EVar;
double *xlambda, *xtgrid, *xT2M, *xNi, *xNT, *xtau;
SEXP tau;
int ltgrid =0;
int i = 0;
int j = 0;
2000 Jun 26
2
Looking for protect()
Hello:
This is a simple, I hope, question about the first example in section 3.6.4
of the manual, "Writing R extensions."
I'm using R 1.1.0, and below I list some easy code that I got from section
3.6.4. When I try to compile the file out.c under NT 4, using VC++ 6.0, I
get the following error messages:
Compiling...
out.c
Linking...
out.obj : error LNK2001: unresolved external
2012 Dec 10
1
Changing arguments inside .Call. Wise to encourage "const" on all arguments?
I'm continuing my work on finding speedups in generalized inverse
calculations in some simulations. It leads me back to .C and .Call,
and some questions I've never been able to answer for myself. It may
be I can push some calculations to LAPACK in or C BLAS, that's why I
realized again I don't understand the call by reference or value
semantics of .Call
Why aren't users of
2005 Nov 28
1
Compile Encoder_example.c
Hi,
I'm a highschool student,
I'm looking for information about converting Wave file
(*.wav)
into Ogg file (*.ogg) and i found encoder_example.c
inside libvorbis's example directory. I try to compile
it using Microsoft Visual C++ 6.0 ,but it goes error
like this :
--------------------Configuration: encoder_example -
Win32 Debug--------------------
Linking...
encoder_example.obj :
2006 Oct 07
1
Compiling CVS in VC++ 6.0
Hello,
Apologies if this has been done before. I just joined the list as
this has bugged me for a while.
I can compile FLAC 1.1.2 using Visual C++ 6.0 with no problems.
However, when I try to compile the CVS source I get:
Linking...
utils.obj : error LNK2001: unresolved external symbol _snprintf
grabbag_static.lib(stream_decoder.obj) : error LNK2001: unresolved
external symbol
2010 Nov 17
2
Problem building libFLAC on Windows x64
Hello everyone.
Due to problems with libsndfile's handling of FLAC files, Mixxx is
going to use libFLAC directly in v1.9.0. I'm the Windows packager and
am trying to build libFLAC on Windows x64 using MSVC 2008 and the
following steps that I've put together:
http://mixxx.org/wiki/doku.php/build_windows_dependencies#libflac
The problems I have are the following:
If I try to build the
2012 Aug 06
1
Windows link.exe error : libbrass.lib(brass_table.obj) : unresolved external symbol _inflateEnd
Hi guys,
I discovered xapian today and I'm trying it because it looks promising
compared to other FTS engines.
However I'm in a windows environment so it's a bit painful to set up as
there is no official binaries.
I've heard about http://www.flax.co.uk/xapian_binaries
And I'm trying to build their latest release (1.2.8).
After a few tries I manage to compile everything with
2005 Sep 13
3
NUMERIC_POINTER question
Dear R-developers,
Using .Call I pass a S4 class with e.g. the following class definition:
setClass("mmatrix",representation(
data="matrix")
)
On the "C side" i do
mat = GET_SLOT(vs,install("data"));
and then:
printf("%f\n",NUMERIC_POINTER(mat)[1]);
The above print statement produces the correct output if
xx<- new("mmatrix")
2012 Jun 08
0
Working with optim in C
I've searched to find examples of how to work with the C versions of
optim.
I've separated out the function just to test on it alone, and currently I'm
attempting to use fmmin as follows:
!~~CODE ~~!
double optimfn(int n, double *par, void *ex) {
double * lambda = (double*)malloc(sizeof(double)*n);
double sum = 0;
for(int i =0; i < n; i++) { lambda[i] =
2008 Dec 05
0
[LLVMdev] Build errors on trunk for about a week now.
On Fri, Dec 5, 2008 at 1:57 PM, OvermindDL1 <overminddl1 at gmail.com> wrote:
> On Fri, Dec 5, 2008 at 1:52 PM, OvermindDL1 <overminddl1 at gmail.com> wrote:
>> / * snip */
>
> Actually, rebuilding it makes "debug tblgen" fail with the errors at
> the end of this email, and as such everything that depends on it, how
> odd...
> When I get back to that
2004 Aug 06
1
compile speexenc 1.1.4
Hello,
I have problems to compile speexenc 1.1.4, ihave the following errors
<p>speexenc.obj : error LNK2001: unresolved external symbol
_speex_preprocess
speexenc.obj : error LNK2001: unresolved external symbol
_speex_preprocess_ctl
speexenc.obj : error LNK2001: unresolved external symbol
_speex_preprocess_state_init
Debug/speexenc.exe : fatal error LNK1120: 3 unresolved externals
Error
2004 Sep 13
1
problem with dynamic speex library under windows
Hello.
I'm having problems with the dynamic library of libspeex under win32. I
have used the static library for a while with no problems. When I try to
compile my application with the dynamic library I get the following link
error:
codec_speex.obj : error LNK2001: unresolved external symbol _speex_uwb_mode
codec_speex.obj : error LNK2001: unresolved external symbol _speex_wb_mode
2005 Jul 02
0
[LLVMdev] X86AsmPrinter + MASM and NASM backends
I am now getting the following link errors on all executables:
x86.lib(X86AsmPrinter.obj) : error LNK2001: unresolved external symbol
"public: virtual bool __thiscall
llvm::x86::X86ATTAsmPrinter::runOnMachineFunction(class
llvm::MachineFunction &)"
(?runOnMachineFunction at X86ATTAsmPrinter@x86 at llvm@@UAE_NAAVMachineFunction at 3@@Z)
x86.lib(X86AsmPrinter.obj) : error LNK2001:
2005 Aug 07
4
Reswigged link error
After reswigging I get link problems:
Functions.obj : error LNK2001: unresolved external symbol _mWxruby2
Mac.obj : error LNK2001: unresolved external symbol _mWxruby2
Events.obj : error LNK2001: unresolved external symbol _mWxruby2
...
Which is intriguing since it seems to be defined in wx.cpp
2010 Jan 19
1
Linker Error when compiling Speex decoder
Hi
I get the following error during linking. How do I resolve it.
I am compiling using Visual Studio 2008
Thanks
1>Copyright (C) Microsoft Corporation. All rights reserved.
1>Linking...
1>MicSpeexDec.obj : error LNK2019: unresolved external symbol __imp__fclose referenced in function "int __cdecl _tmain(int,char * * const)" (?_tmain@@YAHHQAPAD at Z)
2002 Nov 13
1
DLLs adding in C++ code
I would like to utilise the power of R by adding my own software as a
package written in C++. As a first step I am trying
to write a DLL with a simple function that can be called from R. The DLL
contains a C++ routine written and complied in Microsoft Visual C++ Ver 6.0
and is based upon the example in R-Exts
eg I am trying to create the following example function
SEXP out(SEXP x, SEXP y)
{
2009 May 13
3
[LLVMdev] MSVC compile error with trunk
Does not seem to be a straight error with LLVM itself, but rather the
tools, linking issues, here are the errors:
Opt:
30> Creating library
R:\SDKs\llvm\trunk_VC8_building\lib\Debug\opt.lib and object
R:\SDKs\llvm\trunk_VC8_building\lib\Debug\opt.exp
30>LLVMScalarOpts.lib(IndVarSimplify.obj) : error LNK2019: unresolved
external symbol "public: bool __thiscall
2007 Feb 28
1
Linking problem when using speex with visual studio 6.0
Hi, dear all
I got the following problem when using speex1.2beta1 with VS 6.0:
LINK : warning LNK4098: defaultlib "LIBCD" conflicts with use of other libs;
use /NODEFAULTLIB:library
libspeex.lib(sb_celp.obj) : error LNK2001: unresolved external symbol
_lpc_window
libspeex.lib(nb_celp.obj) : error LNK2001: unresolved external symbol
_lpc_window
I compiled speex1.2beta1 under win32
2003 Aug 21
3
Ogg Vorbis SDK.
Hi, I've started making an Ogg Vorbis SDK, as per IRC topic instructions :)
Some questions:
Its just targetting MSVC right? Not borland/whatever?
Should it install the headers/libraries in the msvc dir (c:\Program Files\Microsoft Visual Studio\VC98\(Include|Lib)), or should it put them in the same directory as the document (c:\Program Files\Ogg Vorbis SDK\(Include|Lib)), and have the sample