rt_matrx.c(29): fatal error C1083: Unable to open include file: 'stdlib.h' : No such file or directory
Afficher commentaires plus anciens
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 commentaires
Keerthana Ramesh
le 22 Sep 2022
Modifié(e) : Keerthana Ramesh
le 22 Sep 2022
Hi,
As per my understanding this error could possibly be caused by an issue with the installation of Microsoft Visual Studio.
Two different methods that can be used to resolve this error message are:
1. Switch to the 'MinGW' compiler using the following command.
>> mex -setup
Check that your Simulink model also shows MinGW (Model Configuration Parameters > Code Generation > Toolchain > Underneath "Automatically locate an installed toolchain").
2. Try fully uninstalling and reinstalling Visual Studio 2019.
Thanks,
Keerthana
Kévin Dos Santos
le 22 Sep 2022
Keerthana Ramesh
le 22 Sep 2022
Modifié(e) : Stefanie Schwarz
le 25 Avr 2025
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
le 22 Sep 2022
Modifié(e) : Kévin Dos Santos
le 22 Sep 2022
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Introduction to Installation and Licensing dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!