I need to ivoke the Fortan code in Simulink. For that I have written a C mex file to link the Fortran code
with S funtion block. Initially, everything worked just fine: I would compile the Fortran code using the following command
mex -c txtfile.f
Where txtfile.f is the Fortran code which I want in Matlab
After that,I would link Fortran with c mex file by following command:
mex txtfile.obj txtmex.c
Everything worked like a charm,but one day my Matlab crashed for some unknown reason and when I restarted and tried linking the Fortran with C mex using following command
mex txtfile.obj txtmex.c
I get the error:
Error using mex
LINK : fatal error LNK1104: cannot open file 'ifconsol.lib'
I cant work around that problem,any help would be much appreciated.
Thanks
PS I am using Intel Parallel Studio XE 2015 for Fortran with Microsoft Visual Studio 2015 with
Matlab 2018a.

 채택된 답변

Yongjian Feng
Yongjian Feng 2021년 11월 2일

0 개 추천

Looks like VS has trouble to find the lib.
https://community.intel.com/t5/Intel-Fortran-Compiler/cannot-open-file-ifconsol-lib/td-p/912444

댓글 수: 1

afaq ahmad
afaq ahmad 2021년 11월 5일
Uninstalling and reinstalling VS has appeared to have solved the problem.
Thanks

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

추가 답변 (0개)

카테고리

도움말 센터 및 File Exchange에서 Fortran with MATLAB에 대해 자세히 알아보기

제품

릴리스

R2018a

질문:

2021년 11월 2일

댓글:

2021년 11월 5일

Community Treasure Hunt

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

Start Hunting!

Translated by