I'm having trouble installing open gl in visual studio

ALCOCK Lyndon 1 Reputation point

i have both the glut32.dll file and the glut.dll file in system32 and the glut32.dll in sysWOW64 but when i run an opengl test on visual studio it comes up with an error message "The code execution cannot proceed because glut32.dll was not found. Reinstalling the program may fix this problem.", i have tried multiple ways of installing the dll file and also tried completely uninstalling and reinstalling visual studio, nothing has worked, can anyone help

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,448 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Sam of Simple Samples 5,516 Reputation points

    I created an empty Windows (not console) application and put the code from The Program Ported to Windows into it then changed the character set to MBCS then added Opengl32.lib and glu32.lib to the input linker libraries and that compiled and ran. Visual Studio installs OpenGL for us so the problem might be something you did. You might need to provide more information about your configuration.

    0 comments No comments