When i create a project to pass a path of an image to my matlab project and i created the initialization:
#include "feautresPoints.h"
int main(int argc, char* argv[])
{
mxArray* result;
mxArray* x;
double myArray[5]={10.2, 3, 6.3, 5.4, 5.9};
x=mxCreateDoubleMatrix(1, 5, mxREAL);
memcpy(mxGetPr(x), myArray, 5 * sizeof(double));
feautresPointsInitialize();
feautresPointsTerminate();
return 0;
}
it gives me 3 errors
Error 1
error LNK2019: unresolved external symbol _mxGetPr_proxy referenced in function _main
Error 2
error LNK2019: unresolved external symbol _mxCreateDoubleMatrix_730_proxy referenced in function _main
Error 3
error LNK1120: 2 unresolved externals
so how can i solve these errors??
I include the matlab project library produced during compilation in C++ project and libmx.lib and also add the include file for matlab and also i add matlab library for additional library Directories