简体   繁体   中英

LINK : fatal error LNK1104: cannot open file "glut32.lib". how to fix this error?

I want to ask a question. I'm using Microsoft Visual Studio 6.0 and I was stuck in this #error. LINK : fatal error LNK1104: cannot open file "glut32.lib" . Actually the command that I used can be run at my computer lab at my college but now I'm using my pc's to run it. I already follow the step to install openGL in my pc's, but it is still stuck. I hope somebody can help me. Thanks.

Check your VC\lib folder, is there a file called glut32.lib? If not, re-download GLUT and follow the README to put files in the right folder. Here is a link to GLUT

C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\lib

This path is for VS 2013, depending on the Visual Studio Version 11.0/12.0 will be varied

在我的情况下:右键单击项目名称->属性->配置管理器(在右上角)->在“活动解决方案平台”(平台win32)中选择“x86”===>>>运行

In my case, in visual studio 2019, it was because the solution platform was 64 . So I changed from the dropdown menu left to the |> Local Windows Debugger t0 86 and run it again and it worked视觉工作室 2019 hope this help

将“glut32.lib”复制到“C:\Program Files (x86)\Windows Kits\8.1\Lib\winv6.3\um\x86”。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM