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:
I'm really lost on that matter. I did a lot of searchs and found nothing that helped me understant till the momment.
So, what is the path? What I want to know to make native x64 OpenGL apps?
There is definitely a 64-bit OpenGL DLL, but it has "32" in its name, presumably to make porting easier.
On the official site, navigate to the graphics driver and choose your operating system. Download the latest drivers for your graphics card and install it to your computer. This will also update the OpenGL on your computer. Otherwise, it makes sense to get the OpenGL driver from the graphics driver within Windows 10.
The 64-bit OpenGL import library is included in the Windows SDK and gets installed to %ProgramFiles%\Microsoft SDKs\Windows\<version>\Lib\x64\OpenGL32.lib
. The corresponding DLL is named opengl32.dll
and is located in %SystemRoot%\system32
. The 32-bit version is also named opengl32.dll
and is located in %SystemRoot%\syswow64
on 64-bit Windows.
You can't load 32-bit DLLs in a 64-bit process, so whatever you read about x64 apps using the 32-bit OpenGL DLL was incorrect. There is definitely a 64-bit OpenGL DLL, but it has "32" in its name, presumably to make porting easier.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With