I am trying to call void process (uint8_t* I1,uint8_t* I2,float* D1,float* D2,const int32_t* dims);
from a header file, using the following
int n=10;
size_t size=n*n*sizeof(uint8_t);
uint8_t* I1 = (uint8_t*)malloc(size);
uint8_t* I2 = (uint8_t*)malloc(size);
size=n*n*sizeof(float);
float* D1=(float*)malloc(size);
float* D2=(float*)malloc(size);
const int32_t dims[3] = {n,n,n};
process(I1,I2,D1,D2,dims);
but when I compile, using g++ on linux, I get the message undefined reference to process(unsigned char*, unsigned char*, float*, float*, int const*)
Why does this happen?