Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Tuesday, January 26, 2016 8:25 AM
I installed Visual Studio 2015 Community on Windows 7, but Many of the .h-files are missing - including math.h. As I understand I should install SDK, but after doing so the problem persists. How should I go about fixing this?
I can't even get a "Hello World" to work.
Simply moving the files to where the program looks for them (install folder\VC\include) doesn't work, in fact it backfired and increased the number of errors hundredfold.
Before I got a "math.h is missing"-kind of error and now it's spamming things like "'UniversalCRT_IncludePath': undeclared identifier", "missing type specifier - int assumed. Note: C++ does not support default-int", "syntax error: '.'"
All replies (1)
Wednesday, January 27, 2016 9:46 AM ✅Answered
Hi Wyzai,
Thank you for posting in MSDN forum.
For your question, I tried to find .h files on my machine which installed VS 2015 , but there is not such type file here. I would like to know if your project is using C language?
If so, i did a research about C++ Language and Standard Libraries includes the Standard C library header <math.h>.
Please refer to:
https://msdn.microsoft.com/en-us/library/7wsh95e5.aspx
You may try the steps below to repair your VS:
1.Go to Control Panel >Programs >Programs and Features
2.Select Microsoft Visual Studio 2015 and click on 'modify'.
3. install the VC components as the screenshot:

If the error persists, then you may try to running devenv.exe /log <log path> in Command Prompt, the log files will be generated in the <log path>.
Please upload the file to https://onedrive.live.com/ and share the link with us.
Best Regards,
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.