Discussion:
How to static link GLUT?
(too old to reply)
Flark
2008-08-27 16:13:04 UTC
Permalink
I'm trying to use OpenGL, GLUT and GLUI, and I am unable to get
a statically linked Release .exe. All my libraries are static linked.
However during the final link, I get a bunch of errors. These
errors are very ironic because if I grep for any of these symbols
they appear to be in the .obj's and .lib for GLUT.

Can anyone explain what might be going wrong?

When I do a Debug build, machines without VC++ Express installed
refuse to run the program with an application configuration error.

Thanks.

Linking...
program.obj : error LNK2001: unresolved external symbol
***@8
glui32.lib(glui.obj) : error LNK2001: unresolved external symbol
***@8
program.obj : error LNK2001: unresolved external symbol
***@8
program.obj : error LNK2001: unresolved external symbol
***@12
program.obj : error LNK2001: unresolved external symbol
***@8
glui32.lib(glui.obj) : error LNK2001: unresolved external symbol
***@8
program.obj : error LNK2001: unresolved external symbol
***@4
glui32.lib(glui.obj) : error LNK2001: unresolved external symbol
***@4
program.obj : error LNK2001: unresolved external symbol
***@0
glui32.lib(glui.obj) : error LNK2001: unresolved external symbol
***@0
program.obj : error LNK2001: unresolved external symbol
***@4
glui32.lib(glui.obj) : error LNK2001: unresolved external symbol
***@4
program.obj : error LNK2001: unresolved external symbol
***@4
glui32.lib(glui.obj) : error LNK2001: unresolved external symbol
***@4
glui32.lib(glui_control.obj) : error LNK2001: unresolved external
symbol ***@4
program.obj : error LNK2001: unresolved external symbol
***@16
program.obj : error LNK2001: unresolved external symbol
***@4
program.obj : error LNK2001: unresolved external symbol
***@4
program.obj : error LNK2001: unresolved external symbol
***@0
program.obj : error LNK2001: unresolved external symbol
***@8
glui32.lib(glui.obj) : error LNK2001: unresolved external symbol
***@8
program.obj : error LNK2001: unresolved external symbol
***@0
glui32.lib(glui.obj) : error LNK2001: unresolved external symbol
***@0
glui32.lib(glui_control.obj) : error LNK2001: unresolved external
symbol ***@0
program.obj : error LNK2001: unresolved external symbol
***@4
glui32.lib(glui.obj) : error LNK2001: unresolved external symbol
***@4
program.obj : error LNK2001: unresolved external symbol
***@8
glui32.lib(glui.obj) : error LNK2001: unresolved external symbol
***@20
glui32.lib(glui.obj) : error LNK2001: unresolved external symbol
***@8
glui32.lib(glui_control.obj) : error LNK2001: unresolved external
symbol ***@8
glui32.lib(glui.obj) : error LNK2001: unresolved external symbol
***@8
glui32.lib(glui_control.obj) : error LNK2001: unresolved external
symbol ***@8
glui32.lib(glui.obj) : error LNK2001: unresolved external symbol
***@0
glui32.lib(glui.obj) : error LNK2001: unresolved external symbol
***@4
glui32.lib(glui.obj) : error LNK2001: unresolved external symbol
***@0
glui32.lib(glui_control.obj) : error LNK2001: unresolved external
symbol ***@0
glui32.lib(glui.obj) : error LNK2001: unresolved external symbol
***@8
glui32.lib(glui.obj) : error LNK2001: unresolved external symbol
***@4
glui32.lib(glui_mouse_iaction.obj) : error LNK2001: unresolved
external symbol ***@4
glui32.lib(glui.obj) : error LNK2001: unresolved external symbol
***@4
glui32.lib(glui.obj) : error LNK2001: unresolved external symbol
***@8
glui32.lib(glui.obj) : error LNK2001: unresolved external symbol
***@0
glui32.lib(glui.obj) : error LNK2001: unresolved external symbol
***@0
glui32.lib(glui.obj) : error LNK2001: unresolved external symbol
***@4
glui32.lib(glui.obj) : error LNK2001: unresolved external symbol
***@4
glui32.lib(glui.obj) : error LNK2001: unresolved external symbol
***@4
glui32.lib(glui.obj) : error LNK2001: unresolved external symbol
***@4
glui32.lib(glui.obj) : error LNK2001: unresolved external symbol
***@4
glui32.lib(glui.obj) : error LNK2001: unresolved external symbol
***@4
glui32.lib(glui.obj) : error LNK2001: unresolved external symbol
***@4
glui32.lib(glui.obj) : error LNK2001: unresolved external symbol
***@4
C:\Documents and Settings\User\Desktop\work\program\Release
\program.exe : fatal error LNK1120: 36 unresolved externals
jbwest
2008-08-27 17:29:59 UTC
Permalink
Post by Flark
I'm trying to use OpenGL, GLUT and GLUI, and I am unable to get
a statically linked Release .exe. All my libraries are static linked.
However during the final link, I get a bunch of errors. These
errors are very ironic because if I grep for any of these symbols
they appear to be in the .obj's and .lib for GLUT.
Can anyone explain what might be going wrong?
When I do a Debug build, machines without VC++ Express installed
refuse to run the program with an application configuration error.
Thanks.
Linking...
program.obj : error LNK2001: unresolved external symbol
glui32.lib(glui.obj) : error LNK2001: unresolved external symbol
program.obj : error LNK2001: unresolved external symbol
program.obj : error LNK2001: unresolved external symbol
program.obj : error LNK2001: unresolved external symbol
glui32.lib(glui.obj) : error LNK2001: unresolved external symbol
program.obj : error LNK2001: unresolved external symbol
glui32.lib(glui.obj) : error LNK2001: unresolved external symbol
program.obj : error LNK2001: unresolved external symbol
glui32.lib(glui.obj) : error LNK2001: unresolved external symbol
program.obj : error LNK2001: unresolved external symbol
glui32.lib(glui.obj) : error LNK2001: unresolved external symbol
program.obj : error LNK2001: unresolved external symbol
glui32.lib(glui.obj) : error LNK2001: unresolved external symbol
glui32.lib(glui_control.obj) : error LNK2001: unresolved external
program.obj : error LNK2001: unresolved external symbol
program.obj : error LNK2001: unresolved external symbol
program.obj : error LNK2001: unresolved external symbol
program.obj : error LNK2001: unresolved external symbol
program.obj : error LNK2001: unresolved external symbol
glui32.lib(glui.obj) : error LNK2001: unresolved external symbol
program.obj : error LNK2001: unresolved external symbol
glui32.lib(glui.obj) : error LNK2001: unresolved external symbol
glui32.lib(glui_control.obj) : error LNK2001: unresolved external
program.obj : error LNK2001: unresolved external symbol
glui32.lib(glui.obj) : error LNK2001: unresolved external symbol
program.obj : error LNK2001: unresolved external symbol
glui32.lib(glui.obj) : error LNK2001: unresolved external symbol
glui32.lib(glui.obj) : error LNK2001: unresolved external symbol
glui32.lib(glui_control.obj) : error LNK2001: unresolved external
glui32.lib(glui.obj) : error LNK2001: unresolved external symbol
glui32.lib(glui_control.obj) : error LNK2001: unresolved external
glui32.lib(glui.obj) : error LNK2001: unresolved external symbol
glui32.lib(glui.obj) : error LNK2001: unresolved external symbol
glui32.lib(glui.obj) : error LNK2001: unresolved external symbol
glui32.lib(glui_control.obj) : error LNK2001: unresolved external
glui32.lib(glui.obj) : error LNK2001: unresolved external symbol
glui32.lib(glui.obj) : error LNK2001: unresolved external symbol
glui32.lib(glui_mouse_iaction.obj) : error LNK2001: unresolved
glui32.lib(glui.obj) : error LNK2001: unresolved external symbol
glui32.lib(glui.obj) : error LNK2001: unresolved external symbol
glui32.lib(glui.obj) : error LNK2001: unresolved external symbol
glui32.lib(glui.obj) : error LNK2001: unresolved external symbol
glui32.lib(glui.obj) : error LNK2001: unresolved external symbol
glui32.lib(glui.obj) : error LNK2001: unresolved external symbol
glui32.lib(glui.obj) : error LNK2001: unresolved external symbol
glui32.lib(glui.obj) : error LNK2001: unresolved external symbol
glui32.lib(glui.obj) : error LNK2001: unresolved external symbol
glui32.lib(glui.obj) : error LNK2001: unresolved external symbol
glui32.lib(glui.obj) : error LNK2001: unresolved external symbol
glui32.lib(glui.obj) : error LNK2001: unresolved external symbol
C:\Documents and Settings\User\Desktop\work\program\Release
\program.exe : fatal error LNK1120: 36 unresolved externals
This is off-topic for this news group, but anyway, you don't seem to be
linking with a static glut library -- do you really have one ? (probably
not).

jbw

Loading...