Good afternoon, folks. It has been one of those days where absolutely nothing works including things that used to work: Make, OpenGL, PDB files, hello world in visual studio! Nothing works.
Anyway I'm sure there is something I need to reinstall, but I've already reinstalled Visual Studio 2010 Express and MinGW, so I don't know what I'm missing.
1>c:\users\dem7w2\documents\visual studio 2010\projects\helloworld\helloworld\main.cpp(1): fatal error C1083: Cannot open include file: 'iostream': No such file or directory
So what am I missing and what meds are best for headaches?
EDIT: For the record, it seems to be a VS problem. Compiling this file with g++ from cmd works fine.
Well some studies suggest that psilocybin is great for headaches but it also makes it pretty difficult to concentrate, not to mention being slightly illegal to obtain in most places.
My first guess is that you do not have your IDE setup to search for headers in the correct directories. It should explain how to do this when you are installing it IIRC. Otherwise you probably have to add the search directory under the projects options. Then again you could probably just add the directory to your default search paths and be done with it.
Well, I'm still having some issues and I think it's in the same family of problems so I'll post it here as well. I'm trying to compile some C++ code that uses openGL with the following includes:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
// Include standard headers
#include <stdio.h>
#include <stdlib.h>
// Include GLEW
#include <GL/glew.h>
// Include GLFW
#include <GL/glfw.h>
// Include GLM
#include <glm/glm.hpp>
usingnamespace glm;
#include <common/shader.hpp>
When RUNNING the compiled program in VS 2013 Ultimate Trial, I get the following output (ignore the fact that it's located in a VS 2010 directory):
A window opens (as it should) but then immediately closes. Is the issue with the ig7icd32.dll? I already did the tools->option->debugging->symbol->server, checkmark, so that VS auto downloads missing dlls. The code compiles fine so I don't understand why this isn't working.