필터 지우기
필터 지우기

error LNK2019: unresolved external symbol although included

조회 수: 1 (최근 30일)
Ingo Hermann
Ingo Hermann 2017년 11월 9일
I have a problem with using mex. When I use the command
mex mexT1Mapping.c
I get this error
Error using mex
Creating library mexUtils.lib and object mexUtils.exp
mexT1Mapping.obj : error LNK2019: unresolved external symbol maxAbsArray referenced in function threadFunc
and this although I included in the mexT1Mapping.c function the function mexUtils.h with
#include "mexUtils.h";
So _maxAbsArray_ is included but mex does not find it. How can I solve it?
which has following code:
#ifndef MEXUTILS_H
#define MEXUTILS_H
int signDouble (double x);
int by_size (const void * a, const void * b);
double maxAbsArray(double *x, int n);
double minAbsArray(double *x, int n);
double l2Array (double *x, double *y, int n);
double mean (double *x, int n);
double covar (double *x, double *y, int n);
double corrcoef (double *x, double *y, int n);
double mins (double a, double b);
double maxs (double a, double b);
#endif

답변 (0개)

카테고리

Help CenterFile Exchange에서 Write C Functions Callable from MATLAB (MEX Files)에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by