Error while using load library
이전 댓글 표시
Hi,
I defined the path for the library in the excel sheet. And I called it. And I mentioned the part of my code below for you to get an idea.
Par.ChipLibrary_Ind = Par.TestSummary{4,16};
Par.ChipLibrary = Par.TestSummary(Par.ChipLibrary_Ind:Par.ChipLibrary_Ind,1:2);
if (libisloaded(Par.ChipLibrary{1,1}))
unloadlibrary(Par.ChipLibrary{1,1});
end
loadlibrary(Par.ChipLibrary{1,1})
So basically Par.ChipLibrary{1,1} contains the name of the library. And the first 2 lines of the code mentions the path.
But when I run this code, I get this error, stated below.
"Error using loadlibrary
There was an error loading the library "MDR"
Undefined function or variable 'MDR_proto'."
MDR is the name of the library.
Appreciate it, if anyone could help me resolve this.
Thank you.
댓글 수: 5
Guillaume
2018년 7월 12일
No idea what excel has got to do with your question.
From the error message, it looks like matlab failed to parse properly the header file of your library. Can you attach MDR.h?
Melwin Thomas
2018년 7월 12일
Guillaume
2018년 7월 12일
I meant attach MDR.h to your question so we can have a look at it.
Melwin Thomas
2018년 7월 12일
priyanshu chhabra
2020년 4월 12일
편집: priyanshu chhabra
2020년 4월 12일
I'm having same problem. did you ever get to solve it. help me out. thanks in advance
답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 C Shared Library Integration에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!