CCS compilation errors for matlab. How to resolve? error #10234-D: unresolved symbols remain error #10010: errors encountered during linking; "*.out* not built

17 views (last 30 days)
I am trying to write a C program that takes MATLAB .mat file. I am using 'Code Composer studio v12' for the C code. I know we have to include "mat.h" header file. I have done that. But It is giving some errors.
I have paths to the libraries
matlabroot\extern\include
matlabroo\extern\include
matlabroo\extern\lib\win64\microsoft
matlabroo\extern\lib\win64\mingw64
path in the 'File search path' of 'project properties'.
and included librearies
libmx.lib
libmat.lib
libmex.lib
in the 'File search path' of 'project properties'.
I have got some errors, I resolved some errors, but some I could not. Please help me compile this code.
Here is the code
#include <stdio.h>
#include <math.h>
#include "mat.h"
int M,N,i,j,k,l,p,q;
float y[20][20],a[20][20][20],x2[20],x3[20][20][20];
int main()
{
MATFile *pmat;
const char *file = "D:/Palguna/ISAR_dataset/rd_small.mat";
printf(" enter the length of the horizontal dimension\n");
scanf("%d",&M);
printf(" enter the length of the vertical dimesnion\n");
scanf("%d",&N);
pmat = matOpen(file,"r");
float x[3][3]={
{1.0,0.2,-1.0},
{0.0,2.2,1.0},
{3.0,1.0,0.0}};
return 0;
}
It is generating errors like
"C:\Program Files\MATLAB\R2021a\extern\include\matrix.h", line 238: error #20: identifier "int64_T" is undefined
"C:\Program Files\MATLAB\R2021a\extern\include\matrix.h", line 239: error #20: identifier "uint64_T" is undefined
I resolved this by typing
typedef long long mxInt64;
typedef unsigned long long mxUint64;
in lines 238,239 respectively in "matrix.h" file of in the path "matlabroot\extern\include"
Those two errors were corrected.
But now it is giving errors like below
Please help me resolve these errors.

Answers (0)

Categories

Find more on Software Development Tools in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!