My project compiles, link and run in xp32 then I tried to cross compile it to x64 and I came across a lot of questions:
The OpenGL static and dynamic libraries OpenGL32.lib
and opengl32.dll
for 32-bit or 64-bit applications come with the OS and are now respectively in the Windows directories listed below. Just keep in mind that the 32-bit and the 64-bit OpenGL (and glew) libraries are named the same for historical reasons.
If you are using Visual Studio in Windows, no need to copy the opengl32.dll
library in your Debug
or Release
directories where is your .exe
or the path to OpenGL32.lib
in Visual Studio - only add "Opengl32.lib" in Properties
, Linker
, Input
, then Additional Dependencies
.
C:\Program Files (x86)\Windows Kits\10\Lib\10.0.14393.0\um\x86
C:\Windows\System32
C:\Program Files (x86)\Windows Kits\10\Lib\10.0.14393.0\um\x64
C:\Windows\SysWOW64