Compilation don't work. Why?
2 ビュー (過去 30 日間)
古いコメントを表示
Hello.
I couldn't build my project from matlab coder. I had installed microsoft windows sdk 7.1 and i had setup compiler in matlab (mex -setup). When i tried to compile project an error occured: "??? Build error: Build failed for project 'residual_rtw'. See the target build log in the report for further details." When i choose checkbox "Generate code only", MATLAB generated c-code without errors. Please help. I have on my computer: MATLAB R2012b, Microsoft Windows SDK v.7.1.
0 件のコメント
採用された回答
Fred Smith
2012 年 12 月 26 日
You can find the target build log in the compilation report. When the build fails you should see a link to a report. Open the report by clicking the link. In the bottom right corner you will see a tab for "Target Build Log". Click on the tab, and scroll down. This will show you the errors issued by the C compiler and linker.
There is something wrong with the setup of one of these.
Hope that helps,
Fred
ps. mbuild is not relevant for MATLAB Coder. It won't do anything useful.
0 件のコメント
その他の回答 (4 件)
Azzi Abdelmalek
2012 年 12 月 24 日
Try
mbuild -setup
5 件のコメント
Azzi Abdelmalek
2012 年 12 月 24 日
Maybe the problem is related to your code, try to compile a simple code, for example
w=5
while w>0
w=inputdlg('entrer pulsation')
w= str2num(w{:})
t=0:0.1:10
plot(t,cos(w*t))
end
Image Analyst
2012 年 12 月 24 日
See where it says "See the target build log in the report for further details." What is in that file? Report it back here.
5 件のコメント
Yuriy
2012 年 12 月 25 日
1 件のコメント
Image Analyst
2012 年 12 月 25 日
I don't need to do that. When Windows needs such permission, it asks me, but for compilation it never asks for that.
参考
カテゴリ
Help Center および 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!