Hello,
I am just trying to call a function in main.c while I am getting following trouble, somebody kindly help to know
where I am wrong
Fileopr.h
----------
Code:
__declspec(dllexport) void FormatMatrixComp(float * matrix, short int *nmat, short int *nrow, short int *ncol, short int * comp_flag, short int * idbaseMat,
int * idtargetMat);
main.c
--------
Code:
#include Fileopr.h
int matrix[][2]={{1,2},{4,5},{7,8}};
int nmat =10;
int nrow=5;
int ncol=4;
int comp_flag=3;
int idbaseMat=2;
int idtargetMat=1;
int main( int argc, char **argv )
{
FormatMatrixComp(matrix,nmat, nrow, ncol, comp_flag, idbaseMat, idtargetMat);
}
FormatMatrx.c
--------------
Code:
#include Fileopr.h
void FormatMatrixComp(float * matrix, int *nmat, int *nrow, int *ncol, int * comp_flag,int * idbaseMat, int * idtargetMat)
{
Other than "matrix" other parameters showing debugg look up shows following error at run time
// CXX0030: Error: expression cannot be evaluated
// ( I am not seeing passed values )
}