Simulink, MATLAB function make error

Hello,
I'm trying to run a simple MATLAB function within Simulink. But when I run it seems to work fine up until ###Linking, where I get the following error message:
LINK : fatal error LNK1104: cannot open file 'kernel32.lib'
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\amd64\link.exe"' : return code '0x450' Stop.
I'm using MATLAB 7.12.0 (R2011a) and using the visual C++ 2010 compiler.
Any ideas as to what the problem is?
Regards, Thomas

댓글 수: 4

Azzi Abdelmalek
Azzi Abdelmalek 2013년 1월 20일
Have you used embedded function before and worked fine?
Thomas
Thomas 2013년 1월 20일
I've used them before, on a different computer. This is the first time that I've attempted to use them on a new PC
Kaustubha Govind
Kaustubha Govind 2013년 1월 21일
Thomas: When you ran "mex -setup" to select a MEX compiler, was the utility able to find your installed compiler automatically? If not, there might be something missing in your compiler installation.
Thomas
Thomas 2013년 1월 21일
Yer I ran mex -setup, and when saying yes to the automatic search, it found the 2010 compiler. And seemed to accept it

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

답변 (0개)

카테고리

도움말 센터File Exchange에서 Simulink Coder에 대해 자세히 알아보기

제품

질문:

2013년 1월 20일

Community Treasure Hunt

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

Start Hunting!

Translated by