error : unresolved external symbol "pid_ctrl" in function....

조회 수: 1 (최근 30일)
VAMSI KRISHNA THANIKANTI
VAMSI KRISHNA THANIKANTI 2017년 11월 22일
댓글: VAMSI KRISHNA THANIKANTI 2017년 11월 22일
when i am trying to integrate c code into matlab to generate S function i am getting the following error (I am using microsoft visual studio as compiler)
>> legacy_code('compile',def)
### Start Compiling controltemp mex('-IC:\tempctrl', '-c', '-outdir', 'C:\Users\U335470\AppData\Local\Temp\tp48b6cbac_b35d_4df6_bd27_bd4b429fe862', 'C:\tempctrl\CtrTemp.c') Building with 'Microsoft Visual C++ 2015 (C)'. MEX completed successfully. mex('controltemp.c', '-IC:\tempctrl', 'C:\Users\U335470\AppData\Local\Temp\tp48b6cbac_b35d_4df6_bd27_bd4b429fe862\CtrTemp.obj') Building with 'Microsoft Visual C++ 2015 (C)'. Error using mex Creating library controltemp.lib and object controltemp.exp CtrTemp.obj : error LNK2019: unresolved external symbol PID_ctrl referenced in function PeriodicTemperatureControlPID
How to solve this ?
  댓글 수: 2
Birdman
Birdman 2017년 11월 22일
Share your complete code please.
VAMSI KRISHNA THANIKANTI
VAMSI KRISHNA THANIKANTI 2017년 11월 22일
I am sorry cvklpstunc, i cant share. this is a company's one. As per your known can you share which reason may cause this error.?

댓글을 달려면 로그인하십시오.

답변 (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