[Insight-users] Link errors compiling linux ITK+FLTK project
in windows
Karthik Krishnan
Karthik.Krishnan at kitware.com
Tue Apr 26 09:56:09 EDT 2005
Check Linker -> Input -> Additional Dependencies and make sure you have
glu32.lib and opengl32.lib. (and do a clean rebuild)
Hein-Jan Leliveld wrote:
> 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
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Insight-users mailing list
>Insight-users at itk.org
>http://www.itk.org/mailman/listinfo/insight-users
>
>
More information about the Insight-users
mailing list