Displaying 1 result from an estimated 1 matches for "upperlim".
Did you mean:
upperlimit
2002 Jul 24
1
loading compiled C++ code as shared library
...follows. I'm concatenating the header
file (.hh) and the actual source code file (.cc) here. (I'm not including
any real code here, since I hope this is just a syntax issue). I have
//some initial header stuff
#include<vector>
#define INITTIME 100
#define LOWERLIM -1000000.0
#define UPPERLIM 1000000.0
using std::vector;
using std::equal;
// define some structs
struct alpha {...}; ...
//declare functions
foo(...);
bar(...);
//function definitions
foo()
{ bar();
...
}
bar
{...}
//end c++ file
In a separate R file I am trying trying to call foo.
result <- .C("foo"...