Displaying 20 results from an estimated 10000 matches similar to: "Embedding R in C++"
2007 Oct 13
2
the use of the .C function
Dear All,
could someone please shed some light on the use of the .C or .Fortran function:
I am trying load and running on R the following function
// psi.cpp -- psi function for real arguments.
// Algorithms and coefficient values from "Computation of Special
// Functions", Zhang and Jin, John Wiley and Sons, 1996.
//
// (C) 2003, C. Bond. All rights reserved.
//
//
2008 Apr 23
2
libg++.so.2.7.2.8 available for CentOS 4.5 ?
Hi
We have a legacy app and i need to find *libg++.so.2.7.2.8 in a package
for CentOS 4.5 - I can only find this library in a package for RH 7.x
and this cane be installed as it conflicts with stuff from
compat-libstdc++-296 which we also need.*
**
*Any ideas ?*
**
*thanks*
**
2013 Aug 27
1
Error in simulation. NAN
Hi all,
im triyng to implement a bayesian model with R and c++.
I have a strange problem. I can't reproduce the error with a small
script and then i post the original one.
The problem is after the line
for(MCMC_iter2=0;MCMC_iter2<thin;MCMC_iter2++)
For the first 34 iterations all work fine, after, all the simulations
of mu_acc_P return an "nan". If i delete the line
2016 Jul 06
3
[cfe-dev] clang++ build from source is not able to find C++ headers
On Wed, Jul 6, 2016 at 1:21 PM, Mehdi Amini via llvm-dev <
llvm-dev at lists.llvm.org> wrote:
>
> On Jun 23, 2016, at 11:15 AM, Cristianno Martins via llvm-dev <
> llvm-dev at lists.llvm.org> wrote:
>
> Hi Vivek,
>
> you can also include these lines below to your ~/.bash_profile:
>
> LLVM_BUILD="/Developer/llvm/build" # Path to your build directory
2017 Aug 25
3
trouble compiling Dovecot 2.2.31 on Solaris 10 SPARC - libssl_iostream_openssl.so is not portable!
attempting to compile dovecot 2.2.31 on Sun/Oracle Solaris 10 SPARC.
configure goes fine. First sign of problems during compile is with this warning:
...............................................
*** libssl_iostream_openssl.so is not portable!
...............................................
actual ERRORS - Soon, compile errors out with undefined symbols. Output at
bottom of note.
2018 Mar 20
1
Strange "IMAP connection broken (server response)" errors
On Fri, 20 Oct 2017, Kadlecsik J?zsef wrote:
> On Fri, 6 Oct 2017, Jozsef Kadlecsik wrote:
>
> > We upgraded one of our dovecot servers to debian stretch with dovecot
> > 2.2.27 and since then one of our users has been experiencing random IMAP
> > failures.
> >
> > On the client side the user runs alpine and the corresponding debug lines:
> >
>
2007 Apr 04
1
Accessing C++ code from R
Hi,
I am trying to use existing C++ code from R. I have no problems
compiling C code and using it in R, but with C++ I'm running into
problems.
Here's the compiler output:
Macintosh-10:~/Desktop/dissertation/Model - CPP version/R labguest$
g++ -I/Library/Frameworks/R.framework/Resources/include
-I/Library/Frameworks/R.framework/Resources/include/i386 *.cpp
In file included from
2012 May 02
1
File size diff between NFS mount and local disk
Hi all,
I never really paid attention to this but a file on an NFS mount is showing 64M in size, but when copying the file to a local drive, it shows 2.5MB in size.
My NFS server is hardware Raided with a volume stripe size of 128K were the volume size is 20TB.
My NFS clients are the same distro as the server being Centos.
Is this due to my stripe size?
Nuggets are appreciated.
- aurf
2013 Aug 27
1
Install of Dovecot 2.2.5 on Solaris 10/Openssl version 0.9.7d 17 Mar 2004
Greetings!
I am attempting to install Dovecot 2.2.5 on Solaris 10 Sparc hardware with openssl version 0.9.7d 17 Mar 2004. I have created a dovecot user and a dove null user, assigned them their own login directories specifying the ksh shell and assigned them to their own groups. I have run the configure command successfully and am having trouble with the make.
At first, I received the problem
2018 Mar 04
1
2.2.34 fails to build on OpenBSD
Trying to build Dovecot 2.2.34 on OpenBSD fails.
This seems to have been introduced by this commit..
https://github.com/dovecot/core/commit/4a9020ed888caf03fd3132a30a7818b01daa4b9d
Fairly -current..
/usr/bin/libtool --tag=CC --mode=link cc -std=gnu99 -O2 -pipe -Wall
-W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith
-Wchar-subscripts -Wformat=2 -Wbad-function-cast
2011 Apr 20
2
Include C++ DLL, error in ...: C symbol name not in load table
Hello R experts
I am googling and reading around, however, I can't get it working
(perhaps because I do not understand much C, however, I'll give it
a try). I am trying to include C++ code into an R routine, where
the C++ code looks:
#include <iostream>
using namespace std;
void foo (double* x, double* y, double* out)
{
out[0] = x[0] + y[0];
}
Back in R, the command
R CMD
2016 Mar 07
2
Compilation fails: SSL_TXT_SSLV2 not defined
Hello all,
I'm trying to compile dovecot 2.2.21 on OS-X 10.11.3 and I'm running a
bit of trouble with OpenSSL. I've cloned OpenSSL (OpenSSL
1.1.0-pre4-dev) from github and in openssl/ssl.h SSL_TXT_SSLV2 is not
defined anymore. Compilation fails with:
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src/lib
-I../../src/lib-test
2017 Apr 26
2
[BUG] OpenSSL function has been deprecated
In src/lib-ssl-iostream/iostream-openssl-params.c a call is made to DH_generate_parameters. This function has been deprecated since OpenSSL 0.9.8. With OpenSSL 1.1 compilation will throw an error.
Not sure how to send patches, I don't even know if the patch I wrote actually works (I don't program in C, but gave it a shot anyway) but below is the patch.
---
2013 Jan 26
1
[LLVMdev] MCJIT/interpreter and iostream
As of LLVM 3.2, is it possible to use iostream with the MCJIT or interpreter execution engines? I'm getting some errors...
Each of these commands correctly prints "hello":
echo -e '#include <stdio.h>\nint main(){ printf("hello"); }' | clang -cc1 -emit-llvm-bc -x c++ | lli -use-mcjit
echo -e '#include <iostream>\nint main(){ std::cout <<
2017 Sep 13
2
[RFC master-2.2 0/1] Support OpenSSL 1.1 API for setting allowed TLS versions
Hi,
I came up with the following patch while trying to figure out a good solution
for the situation described in Debian bug #871987[1]. In short, OpenSSL in
Debian unstable has disabled TLSv1.0 and TLSv1.1 *by default*. That means that
unless an application requests otherwise, only TLSv1.2 is supported. In the
world of e-mail this is seemingly an issue, as there are still way too many old
clients
2007 Jan 13
2
fxotune Error
I'm trying to learn to use fxotune and am getting the error: Could not
fill input buffer - got -1 bytes, expected 4000 bytes Failure! when I
run it. This is a new install of Asterisk 1.4 and zaptel 1.4. Also I
can't really find an up to date how to on it. Am I supposed to place
fxotune on my startup path and run fxotune -s once it is working
correctly. Any nuggets of info are most
2016 Nov 13
3
[PATCH] Manually cleanup OpenSSL from dovecot_openssl_common_global_unref()
OpenSSL 1.1 features a cleanup function that is automatically run on shutdown
using atexit(3). This function frees all OpenSSL-allocated resources.
In dovecot, OpenSSL is loaded indirectly using dlopen(3) against the relevant
dovecot crypto module and is finally unloaded using dlclose(3). Until
OpenSSL 1.0.1c this worked fine, however OpenSSL 1.0.1c makes sure[1] that the
library stays loaded
2008 Oct 11
1
[LLVMdev] C++ to C?
On Oct 11, 2008, at 12:49 AM, Duncan Sands wrote:
> On Friday 10 October 2008 20:29:49 Michael wrote:
>> What command and options should be used to convert C++ to C?
>
> Try this:
>
> llvm-gcc -c -O3 -emit-llvm file.cpp -o - | llc -march=c -o -
>
> It should spray C code to standard out.
Bear in mind that if you use features from the C++ library, you are
still going
2008 Mar 17
1
how to get access to C++ Objects
In the "Writing R Extensions" manual appears this example, to get access to C++ function using the R commands:
R> dyn.load(paste("X", .Platform$dynlib.ext, sep = ""))
constructor Y
R> .C("X_main")
constructor X
destructor X
list()
That gives me access to the function "X_main", but how to get access to methods and properties
2006 Nov 20
0
[LLVMdev] libstdc++ as bytecode, and compiling C++ to C
On Mon, 2006-11-20 at 17:49 +1100, Emil Mikulic wrote:
> I've compiled all the object files that make up libstdc++ and libsupc++
> into LLVM bytecode:
> http://goanna.cs.rmit.edu.au/~emil/libstdcxx.tar.bz2 (438KB)
>
> A simple test program, x.cpp:
>
> #include <iostream>
> int main() { std::cout << "hello world\n"; return 0; }
>
> $