thank you in advance,
I downloaded all the download dll,lib and h files
and I have no compiler errors
but when I use the function “glutCreateWindow”
or “auxInitWindow”
the program exit with code 1
I don’t know where is the problem.
here is the code:
int main(int argc, char** argv)
{
glutInit(&argc,argv);
glutInitDisplayMode(GLUT_RGB | GLUT_DEPTH);
glutInitWindowSize(500,500);
glutInitWindowPosition(0,0);
glutCreateWindow("Simple");
return 0;
/* ... */
}
and here is what I get
First-chance exception in firstp.exe (NTDLL.DLL): 0xC0000005: Access Violation.
The thread 0xC30 has exited with code 1 (0x1).
The program ‘D:\A_PROTEIN\TEMP\firstp\Debug\firstp.exe’ has exited with code 1 (0x1).