cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
Can't create a window with freeglut
Can't create a window with freeglut
Feb 28, 2013 at 10:11pm UTC
mrpeed
(13)
#ifdef __APPLE__
#include <GLUT/glut.h>
#else
#include <GL/glut.h>
#endif
#include <math.h>
#include <iostream>
using namespace std;
const int WINDOWWIDTH = 500, WINDOWHEIGHT = 500;
int main(int* argc, char** argv)
{
glutInit(&argc, argv);
glutInitWindowSize(WINDOWWIDTH, WINDOWHEIGHT);
glutInitWindowPosition(100, 100);
glutCreateWindow("Pig");
glutMainLoop();
return 0;
}
I'm new to freeglut and opengl, I'm pretty sure I have everything installed properly, perhaps I still don't get how these functions work. The error's are:
in function int main()
can't convert int** to int* for argument 1 to void glutInit()
Topic archived. No new replies allowed.