[Insight-users] glu32.lib opengl32.lib
Chunyan Jiang
chunyan.jiang at gmail.com
Sun Dec 25 18:01:15 EST 2005
Dear all,
I write my CMakeLists.txt to build my project with VC++6 under windowXP
There are some link errors,
fltkgld.lib(gl_start.obj) : error LNK2001: unresolved external symbol
__imp__glDisable at 4
fltkgld.lib(gl_start.obj) : error LNK2001: unresolved external symbol
__imp__glEnable at 4
I searched on internet, these errors might caused by opengl library
link problem.
I find that in my project work space in visual studio 6,
Manu/Project/Settings.../MyProject Link page/Object Library modules,
there is no glu32.lib, opengl32.lib, and so on.
Then I add
# System libraries
SET(MyProject_SYSTEM_LIBS
${OPENGL_LIBRARIES}
${OPENGL_glu_LIBRARY}
${SYSTEM_LIBS}
)
To my CMakeLists.txt, and build again.
But the problem is still unsolved. If I add these two lib to
Project/Settings.../Link page/Object library modules, the link errors
are gone. But if I configer the project in CMake again, the two .lib
in setting is not maintained.
Could some one tell me how to solve it?
Thanks a lot!
Chunyan
More information about the Insight-users
mailing list