rt_matrx.c(29): fatal error C1083: Unable to open include file: 'stdlib.h' : No such file or directory

15 次查看(过去 30 天)
Hello,
i have an issue during the compilation of a simulink model, the model worked since i had a change in my windows professional account, now i can't compile it anymore, and the error i put in the title is appearing in the debug window of simulink.
I saw a similar issue on the Mathworks forum, wich was resolved by reinstalling matlab, i tried to do the same and it didn't worked for me.
I checked if the environment variables on my new windows account are the same from the previous one, it didnt changed.
i don't have admin rights so i asked to my IT service if i was able to access all the paths i use with Matlab, and apparently it's not the problem here.
my theory is that there is maybe an issue with how Matlab and Visual studio are linked together, that or maybe it comes from how the path are defined.
I'm a little lost for this issue, i would be glad if someone could help me or at least guide me on the origin of my problem, thanks you in advance.
Matlab version : 2020A
Compiler version : Visual studio 2019
  4 个评论
Keerthana Ramesh
Keerthana Ramesh 2022-9-22
编辑:Stefanie Schwarz 2025-4-25
Hi,
Another possible reason could be that the recent system changes that have been made andmade are blocking certain scripts from running correctly or could be linked to recently changed Antivirus.
Thanks,
Keerthana
Kévin Dos Santos
Kévin Dos Santos 2022-9-22
编辑:Kévin Dos Santos 2022-9-22
I made all the operations but i still got the same error, so what i'll do is to search from the side of my antivirus and from the system changes.
Thank you for your help, i'll put the solution here if i find one.
Have a nice day.

请先登录,再进行评论。

采纳的回答

Kévin Dos Santos
Kévin Dos Santos 2022-9-28
Hello everyone, for the people in need i found the solution of my problem, it came from two points :
The environment of Visual studio 2019 :
I use Visual Studio 2019 community to compile my projects on MATLAB and SIMULINK, and if you have MSVC and the SDK kits installed at the same time i can create conflicts within your compilation (You can find this specifics add-ons on Visual studio installer > Visual studio 2019 Community > modify > C++ Desktop development).
Be sure when you install VS2019 to only get the strict minimum of add-ons you need to do your project.
My access rights to the MATLAB and Visual studio folders :
Check if you have a total control of your project (Right click on the folder concerned > Properties > Security, choose your user profile and check your rights).
For my part it worked when i changed my access rights of C:\Program Files\MATLAB\R2020a (be sure you have time for that because it took one hour for me, maybe you can only change the right to "toolbox" and it could works but i'm not sure about that) and C:\ProgramData\Speedgoat\speedgoatlib\R2020a
If the last solution doesnt work check the rights access of the other folders that are concerned by Matlab and visual studio.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息

产品


版本

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by