Compiling C code generated using RTW in Visual Studio

2 次查看(过去 30 天)
I created a visual studio solution in RTW.I now want this to be used in another system which does not have MATLAB. But i am still not able to compile in Visual studio. I have the following errors.
1> adder_test.c 1> grt_main.c 1>c1 : fatal error C1083: Cannot open source file: '..\..\..\..\..\..\Program Files\MATLAB\R2012a\rtw\c\grt\grt_main.c': No such file or directory 1> rt_logging.c 1>c1 : fatal error C1083: Cannot open source file: '..\..\..\..\..\..\Program Files\MATLAB\R2012a\rtw\c\src\rt_logging.c': No such file or directory 1> rt_nonfinite.c 1> rt_sim.c 1>c1 : fatal error C1083: Cannot open source file: '..\..\..\..\..\..\Program Files\MATLAB\R2012a\rtw\c\src\rt_sim.c': No such file or directory
It is trying to access the files from the folder structure that does not exist in my system but exists in the system who created this model. How do i overcome this?

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Simulink Coder 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by