Error using loadlibrary; failed to preprocess the input file. Error C1189.

조회 수: 14 (최근 30일)
Alba
Alba 2014년 2월 21일
댓글: Josh Philipson 2020년 5월 1일
After successfully building a .dll of my Simulink model (which includes an S-function), I tried to load the library in Matlab:
[notfound,warnings] = loadlibrary([libraryName,ext],...
fullfile('.',[modelname,'_ert_shrlib_rtw'],[modelname,'.h']),...
'mfilename',mprototypename,...
'includepath',fullfile(matlabroot,'simulink','include'));
but I got the following error message:
Error using loadlibrary (line 419)
Failed to preprocess the input file.
Output from preprocessor is:myModel.h
matlabroot\simulink\include\simstruc.h(285) : fatal error C1189: #error : Unrecognized use.
Any idea on how to solve this error?
  댓글 수: 3

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Deployment, Integration, and Supported Hardware에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by