Code:
#include <iostream>
#include <cmath>
#define pi = 3.141592653589793238462643383
using namespace std;
int main(int argc, char** argv)
{
int i = 0;
double oscPhs[3] = {0, 0, 0}, oscOut[3] = {0, 0, 0};
oscOut[i] = sin(oscPhs[i]*2.0f*pi) * 10000;
cout << oscOut[0];
return 0;
}
This code reproduces the exact types and names used in the original program I was trying to compile.
Changine "pi" to "pim" or other variable names doesn't fix it.
Changing "oscPhs[i]*2.0f*pi" to "2.0f*pi*oscPhs[i]" doesn't fix it.