Hello,<br>
<br>
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<tt>++ 6.0 I get the following link errors:<br>
<br>
</tt>
<tt>--------------------Configuration: imageregistration - Win32 Debug--------------------</tt><br>
<tt>Linking...</tt><br>
<tt> Creating library Debug/imageregistration.lib and object Debug/imageregistration.exp</tt><br>
<tt>GUI.obj : error LNK2001: unresolved external symbol __imp__glVertex2d@16</tt><br>
<tt>GUI.obj : error LNK2001: unresolved external symbol __imp__glColor4f@16</tt><br>
<tt>GUI.obj : error LNK2001: unresolved external symbol __imp__glEnd@0</tt><br>
<tt>fltk_gl.lib(gl_draw.obj) : error LNK2001: unresolved external symbol __imp__glEnd@0</tt><br>
<tt>GUI.obj : error LNK2001: unresolved external symbol __imp__glVertex2f@8</tt><br>
<tt>GUI.obj : error LNK2001: unresolved external symbol __imp__glBegin@4</tt><br>
<tt>fltk_gl.lib(gl_draw.obj) : error LNK2001: unresolved external symbol __imp__glBegin@4</tt><br>
<tt>GUI.obj : error LNK2001: unresolved external symbol __imp__glPointSize@4</tt><br>
<tt>GUI.obj : error LNK2001: unresolved external symbol __imp__glColor3f@12</tt><br>
<tt>GUI.obj : error LNK2001: unresolved external symbol __imp__glDisable@4</tt><br>
<tt>fltk_gl.lib(Fl_Gl_Window.obj) : error LNK2001: unresolved external symbol</tt><br>
<tt>__imp__glDisable@4</tt><br>
<tt>GUI.obj : error LNK2001: unresolved external symbol __imp__glBlendFunc@8</tt><br>
<tt>GUI.obj : error LNK2001: unresolved external symbol __imp__glEnable@4</tt><br>
<tt>GUI.obj : error LNK2001: unresolved external symbol __imp__glDrawPixels@20</tt><br>
<tt>fltk_gl.lib(gl_draw.obj) : error LNK2001: unresolved external symbol</tt><br>
<tt>__imp__glDrawPixels@20</tt><br>
<tt>GUI.obj : error LNK2001: unresolved external symbol __imp__glPixelZoom@8</tt><br>
<tt>GUI.obj : error LNK2001: unresolved external symbol __imp__glRasterPos2i@8</tt><br>
<tt>fltk_gl.lib(Fl_Gl_Window.obj) : error LNK2001: unresolved external symbol</tt><br>
<tt>__imp__glRasterPos2i@8</tt><br>
<tt>fltk_gl.lib(gl_draw.obj) : error LNK2001: unresolved external symbol</tt><br>
<tt>__imp__glRasterPos2i@8</tt><br>
<tt>GUI.obj : error LNK2001: unresolved external symbol __imp__glLoadIdentity@0</tt><br>
<tt>fltk_gl.lib(Fl_Gl_Window.obj) : error LNK2001: unresolved external symbol</tt><br>
<tt>__imp__glLoadIdentity@0</tt><br>
<tt>GUI.obj : error LNK2001: unresolved external symbol __imp__glMatrixMode@4</tt><br>
<tt>GUI.obj : error LNK2001: unresolved external symbol __imp__glClear@4</tt><br>
<tt>GUI.obj : error LNK2001: unresolved external symbol __imp__glPixelStorei@8</tt><br>
<tt>fltk_gl.lib(gl_draw.obj) : error LNK2001: unresolved external symbol</tt><br>
<tt>__imp__glPixelStorei@8</tt><br>
<tt>GUI.obj : error LNK2001: unresolved external symbol __imp__glShadeModel@4</tt><br>
<tt>GUI.obj : error LNK2001: unresolved external symbol __imp__glClearColor@16</tt><br>
<tt>fltk_gl.lib(Fl_Gl_Window.obj) : error LNK2001: unresolved external symbol</tt><br>
<tt>__imp__glReadBuffer@4</tt><br>
<tt>fltk_gl.lib(Fl_Gl_Window.obj) : error LNK2001: unresolved external symbol</tt><br>
<tt>__imp__glDrawBuffer@4</tt><br>
<tt>fltk_gl.lib(Fl_Gl_Window.obj) : error LNK2001: unresolved external symbol</tt><br>
<tt>__imp__glOrtho@48</tt><br>
<tt>fltk_gl.lib(Fl_Gl_Window.obj) : error LNK2001: unresolved external symbol</tt><br>
<tt>__imp__glViewport@16</tt><br>
<tt>fltk_gl.lib(Fl_Gl_Window.obj) : error LNK2001: unresolved external symbol</tt><br>
<tt>__imp__glGetIntegerv@8</tt><br>
<tt>fltk_gl.lib(Fl_Gl_Window.obj) : error LNK2001: unresolved external symbol __imp__glFlush@0</tt><br>
<tt>fltk_gl.lib(Fl_Gl_Window.obj) : error LNK2001: unresolved external symbol</tt><br>
<tt>__imp__glCopyPixels@20</tt><br>
<tt>fltk_gl.lib(gl_draw.obj) : error LNK2001: unresolved external symbol __imp__glListBase@4</tt><br>
<tt>fltk_gl.lib(gl_draw.obj) : error LNK2001: unresolved external symbol</tt><br>
<tt>__imp__wglUseFontBitmapsA@16</tt><br>
<tt>fltk_gl.lib(gl_draw.obj) : error LNK2001: unresolved external symbol __imp__glGenLists@4</tt><br>
<tt>fltk_gl.lib(gl_draw.obj) : error LNK2001: unresolved external symbol</tt><br>
<tt>__imp__glDeleteLists@8</tt><br>
<tt>fltk_gl.lib(gl_draw.obj) : error LNK2001: unresolved external symbol __imp__glCallLists@12</tt><br>
<tt>fltk_gl.lib(gl_draw.obj) : error LNK2001: unresolved external symbol</tt><br>
<tt>__imp__glRasterPos2f@8</tt><br>
<tt>fltk_gl.lib(gl_draw.obj) : error LNK2001: unresolved external symbol __imp__glVertex2i@8</tt><br>
<tt>fltk_gl.lib(gl_draw.obj) : error LNK2001: unresolved external symbol __imp__glColor3ub@12</tt><br>
<tt>fltk_gl.lib(Fl_Gl_Choice.obj) : error LNK2001: unresolved external symbol</tt><br>
<tt>__imp__wglShareLists@8</tt><br>
<tt>fltk_gl.lib(Fl_Gl_Choice.obj) : error LNK2001: unresolved external symbol</tt><br>
<tt>__imp__wglCreateContext@4</tt><br>
<tt>fltk_gl.lib(Fl_Gl_Choice.obj) : error LNK2001: unresolved external symbol</tt><br>
<tt>__imp__wglCreateLayerContext@8</tt><br>
<tt>fltk_gl.lib(Fl_Gl_Choice.obj) : error LNK2001: unresolved external symbol</tt><br>
<tt>__imp__wglMakeCurrent@8</tt><br>
<tt>fltk_gl.lib(Fl_Gl_Choice.obj) : error LNK2001: unresolved external symbol</tt><br>
<tt>__imp__wglDeleteContext@4</tt><br>
<tt>Debug/imageregistration.exe : fatal error LNK1120: 39 unresolved externals</tt><br>
<tt>Error executing link.exe.</tt><br>
<br>
<tt>ALL_BUILD - 48 error(s), 0 warning(s)</tt><br>
-----------------------------------------<br>
<br>
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.<br>
<br>
Does someone recognise these unresolved errors and knows how to fix these...? More information can be provided if needed.<br>
<br>
Hein-Jan<br>