[Insight-users] Link errors compiling linux ITK+FLTK project in
windows
Hein-Jan Leliveld
heinjan at gmail.com
Tue Apr 26 01:56:08 EDT 2005
Hello,
I'm working on a registration program with ITK and FLTK. Everything compiles
and works fine in linux with gcc, but if I try to compile the project in
windows with visual C++ 6.0 I get the following link errors:
--------------------Configuration: imageregistration - Win32
Debug--------------------
Linking...
Creating library Debug/imageregistration.lib and object
Debug/imageregistration.exp
GUI.obj : error LNK2001: unresolved external symbol __imp__glVertex2d at 16
GUI.obj : error LNK2001: unresolved external symbol __imp__glColor4f at 16
GUI.obj : error LNK2001: unresolved external symbol __imp__glEnd at 0
fltk_gl.lib(gl_draw.obj) : error LNK2001: unresolved external symbol
__imp__glEnd at 0
GUI.obj : error LNK2001: unresolved external symbol __imp__glVertex2f at 8
GUI.obj : error LNK2001: unresolved external symbol __imp__glBegin at 4
fltk_gl.lib(gl_draw.obj) : error LNK2001: unresolved external symbol
__imp__glBegin at 4
GUI.obj : error LNK2001: unresolved external symbol __imp__glPointSize at 4
GUI.obj : error LNK2001: unresolved external symbol __imp__glColor3f at 12
GUI.obj : error LNK2001: unresolved external symbol __imp__glDisable at 4
fltk_gl.lib(Fl_Gl_Window.obj) : error LNK2001: unresolved external symbol
__imp__glDisable at 4
GUI.obj : error LNK2001: unresolved external symbol __imp__glBlendFunc at 8
GUI.obj : error LNK2001: unresolved external symbol __imp__glEnable at 4
GUI.obj : error LNK2001: unresolved external symbol __imp__glDrawPixels at 20
fltk_gl.lib(gl_draw.obj) : error LNK2001: unresolved external symbol
__imp__glDrawPixels at 20
GUI.obj : error LNK2001: unresolved external symbol __imp__glPixelZoom at 8
GUI.obj : error LNK2001: unresolved external symbol __imp__glRasterPos2i at 8
fltk_gl.lib(Fl_Gl_Window.obj) : error LNK2001: unresolved external symbol
__imp__glRasterPos2i at 8
fltk_gl.lib(gl_draw.obj) : error LNK2001: unresolved external symbol
__imp__glRasterPos2i at 8
GUI.obj : error LNK2001: unresolved external symbol __imp__glLoadIdentity at 0
fltk_gl.lib(Fl_Gl_Window.obj) : error LNK2001: unresolved external symbol
__imp__glLoadIdentity at 0
GUI.obj : error LNK2001: unresolved external symbol __imp__glMatrixMode at 4
GUI.obj : error LNK2001: unresolved external symbol __imp__glClear at 4
GUI.obj : error LNK2001: unresolved external symbol __imp__glPixelStorei at 8
fltk_gl.lib(gl_draw.obj) : error LNK2001: unresolved external symbol
__imp__glPixelStorei at 8
GUI.obj : error LNK2001: unresolved external symbol __imp__glShadeModel at 4
GUI.obj : error LNK2001: unresolved external symbol __imp__glClearColor at 16
fltk_gl.lib(Fl_Gl_Window.obj) : error LNK2001: unresolved external symbol
__imp__glReadBuffer at 4
fltk_gl.lib(Fl_Gl_Window.obj) : error LNK2001: unresolved external symbol
__imp__glDrawBuffer at 4
fltk_gl.lib(Fl_Gl_Window.obj) : error LNK2001: unresolved external symbol
__imp__glOrtho at 48
fltk_gl.lib(Fl_Gl_Window.obj) : error LNK2001: unresolved external symbol
__imp__glViewport at 16
fltk_gl.lib(Fl_Gl_Window.obj) : error LNK2001: unresolved external symbol
__imp__glGetIntegerv at 8
fltk_gl.lib(Fl_Gl_Window.obj) : error LNK2001: unresolved external symbol
__imp__glFlush at 0
fltk_gl.lib(Fl_Gl_Window.obj) : error LNK2001: unresolved external symbol
__imp__glCopyPixels at 20
fltk_gl.lib(gl_draw.obj) : error LNK2001: unresolved external symbol
__imp__glListBase at 4
fltk_gl.lib(gl_draw.obj) : error LNK2001: unresolved external symbol
__imp__wglUseFontBitmapsA at 16
fltk_gl.lib(gl_draw.obj) : error LNK2001: unresolved external symbol
__imp__glGenLists at 4
fltk_gl.lib(gl_draw.obj) : error LNK2001: unresolved external symbol
__imp__glDeleteLists at 8
fltk_gl.lib(gl_draw.obj) : error LNK2001: unresolved external symbol
__imp__glCallLists at 12
fltk_gl.lib(gl_draw.obj) : error LNK2001: unresolved external symbol
__imp__glRasterPos2f at 8
fltk_gl.lib(gl_draw.obj) : error LNK2001: unresolved external symbol
__imp__glVertex2i at 8
fltk_gl.lib(gl_draw.obj) : error LNK2001: unresolved external symbol
__imp__glColor3ub at 12
fltk_gl.lib(Fl_Gl_Choice.obj) : error LNK2001: unresolved external symbol
__imp__wglShareLists at 8
fltk_gl.lib(Fl_Gl_Choice.obj) : error LNK2001: unresolved external symbol
__imp__wglCreateContext at 4
fltk_gl.lib(Fl_Gl_Choice.obj) : error LNK2001: unresolved external symbol
__imp__wglCreateLayerContext at 8
fltk_gl.lib(Fl_Gl_Choice.obj) : error LNK2001: unresolved external symbol
__imp__wglMakeCurrent at 8
fltk_gl.lib(Fl_Gl_Choice.obj) : error LNK2001: unresolved external symbol
__imp__wglDeleteContext at 4
Debug/imageregistration.exe : fatal error LNK1120: 39 unresolved externals
Error executing link.exe.
ALL_BUILD - 48 error(s), 0 warning(s)
-----------------------------------------
I use ITK 2.0.1, FLTK 1.1.6 and VTK 4.2. The simple imageviewer of insight
applications works (under windows), so I presume the linking between ITK an
and FLTK is done properly.
Does someone recognise these unresolved errors and knows how to fix
these...? More information can be provided if needed.
Hein-Jan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/insight-users/attachments/20050426/0ec73555/attachment-0001.html
More information about the Insight-users
mailing list