Why do i get the error : C 'cmath' : No such file or directory when i try to compile a project using Visual studio 2012
9 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Houayda Gharbi
am 27 Mai 2015
Kommentiert: Houayda Gharbi
am 28 Mai 2015
I am trying to compile the "gop program" , I selected the Visual C compiler located in the following folder:
C:\Program Files\Microsoft Visual Studio 11.0
When I then try to build the model , I get the following Erreur : error C1083: Impossible d'ouvrir le fichier include : 'cmath' : No such file or directory c:\users\hp\desktop\gop_1.3\lib\util\win_util.h thank you for your help
0 Kommentare
Akzeptierte Antwort
Walter Roberson
am 27 Mai 2015
You are trying to compile C++ code with a C compiler.
7 Kommentare
Walter Roberson
am 27 Mai 2015
You have Visual Studio 11.0, which appears to have been released in 2012. If you upgraded to Visual Studio 2013 or later then that should work; it is also plausible that SDK 7.1 might work.
I have not kept track of what g++ requires.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Troubleshooting in MATLAB Compiler SDK finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!