Quote:
Originally Posted by sur
It looks like you need to define it using extern "C" for WindRiver to compile it correctly:
Code:
#include <cmath>
using namespace std;
extern "C" double remainder(double, double);
|
Would you mind running that and see if it produces the same output as this:
Code:
double myRemainder(double x, double y){
return x-y*floor(0.5+x/y);
}