[Insight-users] Problems with elements of fltk.
Luis Ibanez
luis . ibanez at kitware . com
Thu, 08 Aug 2002 08:49:22 -0400
Hi Samuel,
The errors about unresolved symbols that you are getting
seem to be due to the absence of the sockect library for
windows. FLTK uses sockets to internally manage events.
Please add wsock32.lib to your link line.
If you are using CMake to manage the example (which is
highly recommended), please add the following lines to
your CMakeLists.txt file:
IF(WIN32)
LINK_LIBRARIES(
wsock32
)
ENDIF(WIN32)
These lines will include the socket library on windows.
--
BTW all the FLTK related code work both in FLTK 1.0.11
and FLTK 1.1. (there is not 1.1 specific code in the
ITK examples)
We hope people will start migrating to FLTK 1.1 so we
can start taking advantage of the new features....
Please let us know if you encounter further problems,
Thanks
Luis
================================================
Samuel Rodríguez Bescos wrote:
> Hi everybody,
>
>
>
> I developing and example based in deformable model. I have the next
> linking errors:
>
>
>
> /Linking...
> LINK : warning LNK4098: defaultlib "MSVCRT" conflicts with use of
> other libs; use /NODEFAULTLIB:library
> fltk.lib(Fl_x.obj) : error LNK2001: unresolved external symbol
> //___WSAFDIsSet@8/ <mailto:___WSAFDIsSet@8>
> /fltk.lib(Fl_x.obj) : error LNK2001: unresolved external symbol
> //_select@20/ <mailto:_select@20>
> /Debug/DeformableModelTest.exe : fatal error LNK1120: 2 unresolved
> externals
> Error executing link.exe.
> Creating browse info file.../
>
> //
>
> /DeformableModelTest.exe - 3 error(s), 1 warning(s)
> /
>
> I think that are related with fltk classes. Does anyone know if the
> classes related with FLTK have been changed from the version of
> february to the last version?. I'm using the fl_chooser_file and the
> fltkImage2DViewer classes.
>
> If the problem can not be solved, How can I visualize images with
> elements of the last version?.
>
>
>
> Thanks in Advance,
>
>
>
> Samuel
>