bufanliu / oglsuperbible5

Automatically exported from code.google.com/p/oglsuperbible5
0 stars 0 forks source link

vs2008 projects, cannot open file 'freeglut.lib' #21

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
At least Triangles and Bounce VS2008 projects are broken (I assume others are 
also).
You get:
LINK : fatal error LNK1104: cannot open file 'freeglut.lib'

Because 2010-12-31 the freeglut-2.6.0/include/GL/freeglut_std.h file was 
modified in svn:
From:
71#           pragma comment (lib, "freeglut_static.lib")
To:
71#           pragma comment (lib, "freeglut.lib")

So freeglut always adds lib include for "freeglut.lib", even when 
FREEGLUT_STATIC is defined.

Changing that back to "freeglut_static.lib" fixes the problem.

Original issue reported on code.google.com by aki.te...@gmail.com on 8 Feb 2011 at 9:36

GoogleCodeExporter commented 8 years ago
how to change freeglut.lib to freeglut_static.lib

Original comment by naghe...@gmail.com on 31 Oct 2011 at 2:01

GoogleCodeExporter commented 8 years ago
I don't have the project files anymore, but I think you should already have 
that freeglut-2.6.0/include/GL/freeglut_std.h on your local drive if you have 
downloaded/checked out the sample file structure. Then just modify that pragma 
line in your local freeglut_std.h file.

Original comment by aki.te...@gmail.com on 31 Oct 2011 at 3:16

GoogleCodeExporter commented 8 years ago
I have the same problem in VS 2010.
I add freeglut_static.lib to my project but that doesnt't work
Modifying the #pragma line didnt solve the problem, because I get a bunch of 
new system errors. What else can I do?

Thanks

Original comment by sahn...@gmail.com on 15 Jan 2012 at 8:10

GoogleCodeExporter commented 8 years ago
I have a similar problem Please HELP!

I get the following error:

1>LINK : fatal error LNK1104: cannot open file 'gltools.lib'

Original comment by racha.ye...@gmail.com on 19 Jan 2015 at 7:08