This is really getting on my nerves, I've tried EVERYTHING but this stupid error won't go away, there's
nothing wrong with my code.
I've tried doing it with a basic Hello world program but it won't compile either.
I'm using Visual C++ 2008 Express Edition.
I've googled and found lots of questions but no answers
Code:
#include <iostream>
#include <GL/glut.h>
using namespace std;
void Keyboard(unsigned char Key, int x, int y){} //Placeholder
void Initialize(){
glEnable(GL_DEPTH_TEST);
}
void Resize(int w, int h){
glViewport(0, 0, w, h);
glMatrixMode(GL_PROJECTION);
glLoadIdentity();
gluPerspective(45.0, w/h, 1.0, 200.0);
}
void Draw(){
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
glMatrixMode(GL_MODELVIEW);
glLoadIdentity();
glutSwapBuffers();
}
int main(int argc, char** argv){
glutInit(&argc, argv);
glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGB | GLUT_DEPTH);
glutInitWindowSize(800, 600);
glutCreateWindow("Plain Window");
Initialize();
glutDisplayFunc(Draw);
glutKeyboardFunc(Keyboard);
glutReshapeFunc(Resize);
glutMainLoop();
return 0;
} Code:
1>------ Build started: Project: Start, Configuration: Debug Win32 ------
1>Embedding manifest...
1>mt.exe : general error c10100b1: Failed to load file "..\Debug\Start.exe". The system cannot find the path specified.
1>Build log was saved at "file://c:\Users\James\Desktop\OpenGL\Learning\Start\Start\Start\Debug\BuildLog.htm"
1>Start - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========