I'm using OpenGL with Xcode on my macbook Pro OS X 10.10 (Beta) and as soon as I tried to compile my project I ran into a problem.
#include <GLUT/glut.h> // OpenGL + GLUT
#include <OpenGL/gl.h>
#include <OpenGL/glu.h>
#include <stdio.h>
#include <SDL/SDL.h>
int main(int argc, char *argv[])
{
SDL_Init(SDL_INIT_VIDEO);
SDL_WM_SetCaption("SDL GL Application", NULL);
SDL_SetVideoMode(640, 480, 32, SDL_OPENGL);
glMatrixMode( GL_PROJECTION );
glLoadIdentity( );
gluPerspective(70,(double)640/480,1,1000);
return 0;
}
I get a build succeed message and then :
dyld`dyld_fatal_error:
0x7fff5fc01074: int3
0x7fff5fc01075: nop
I have no clue what it could mean and mostly how to solve it. The targeted platform is OS X 10.9.