[英]How to solve Code: :Blocks OpenGL problem
I'm using Code: :Blocks for running OpenGL projects and codes.我正在使用 Code: :Blocks 来运行 OpenGL 项目和代码。 To cut to the chase, I tried to move the file glut32.dll to the directory C:\Windows\System32 and it was Successfully copied and pasted, but whenever I try to search for the file it can't be found, even when I scroll down alphabetically to gl files and couldn't find it.
切入正题,我尝试将文件 glut32.dll 移动到目录 C:\Windows\System32 并成功复制和粘贴,但是每当我尝试搜索该文件时,即使在我按字母顺序向下滚动到 gl 文件,但找不到它。 I tried to re copy and paste the file and when I tried to paste it in the same directory I was given the option to replace the Already existing file , which means that the file already exists in that folder.
我尝试重新复制并粘贴该文件,当我尝试将其粘贴到同一目录中时,我可以选择替换Already existing file ,这意味着该文件已存在于该文件夹中。 I tried the cmd command (while running in administrator)
regsvr32 glut32.dll
and it gave me the following message:我尝试了 cmd 命令(在管理员中运行时)
regsvr32 glut32.dll
它给了我以下消息:
I pasted the file in this location too C:\WINDOWS\SysWOW64
, and the same happended and when I neglected it and started running the code, this error occured:我也将文件粘贴到了这个位置C
C:\WINDOWS\SysWOW64
,同样的事情发生了,当我忽略它并开始运行代码时,发生了这个错误:
I'm using:我在用着:
I can't run any of my OpenGL projects.我无法运行我的任何 OpenGL 项目。 Any help would be appreciated.
任何帮助,将不胜感激。
What version is your operating system?你的操作系统是什么版本? 64-bit or 32-bit?
64 位还是 32 位? 64-bit:copy glut32.dll to C:\WINDOWS\SysWOW64 32-bit:copy glut32.dll to C:\WINDOWS\system32 and you can copy gult32.lib,glut.lib to your project's libs path
64-bit:copy glut32.dll to C:\WINDOWS\SysWOW64 32-bit:copy glut32.dll to C:\WINDOWS\system32 and you can copy gult32.lib,glut.lib to your project's libs path
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.