[Insight-users] fltk problem: difference between release and
debug mode
Bing Jian
bjian at cise . ufl . edu
Thu, 2 Oct 2003 11:20:17 -0400 (EDT)
Thanks Julien. The default option is singlethreaded but
even after I switched to MultiThreadedDLL, no changes.
--
Best wishes,
Bing Jian
bjian at cise . ufl . edu
On Thu, 2 Oct 2003, Julien Jomier wrote:
> Hi Bing,
>
> We had the same problem a long time ago,
> FLTK by default compiles using MutltiThreaded DLL code generation.
>
> Your project should use the same run-time library option.
> Did you specify MutltiThreaded DLL code generation for your project?
>
> You can modify this options under Project->Settings->C/C++->Use run-time
> library.
> And use fltk.lib, fltkimages.lib, fltkforms.lib and fltkgl.lib.
>
> Julien
>
> > -----Original Message-----
> > From: insight-users-admin at itk . org
> > [mailto:insight-users-admin at itk . org] On Behalf Of Bing Jian
> > Sent: Thursday, October 02, 2003 10:49 AM
> > To: Julien Jomier
> > Cc: insight-users at itk . org
> > Subject: RE: [Insight-users] fltk problem: difference between
> > release and debug mode
> >
> >
> >
> > Actually, at beginning I tried to use fltk.lib,
> > fltkimages.lib, fltkforms.lib, fltkgl.lib. First I got lots
> > of errors like:
> >
> > Linking...
> > MSVCRT.lib(MSVCRT.dll) : error LNK2005: _tolower already defined in
> > LIBCMT.lib(tolower.obj)
> >
> > I can solve above errors by using /NODEFAULTLIB:library to
> > ignore libcmt.lib. But I still received this error:
> >
> > Linking...
> > fltk.lib(Fl_x.obj) : error LNK2001: unresolved external
> > symbol __imp___TrackMouseEvent at 4 Release/TiffTest.exe : fatal
> > error LNK1120: 1 unresolved externals Error executing link.exe.
> >
> > Then I switched to link dynamic libs, those errors
> > disappeared. And it works fine except that the image is not
> > displayed at all in release mode.
> >
> > --
> > Best wishes,
> > Bing Jian
> > bjian at cise . ufl . edu
> >
> >
> > On Thu, 2 Oct 2003, Julien Jomier wrote:
> >
> > > Hi Bing,
> > >
> > > Can you use static libraries or do you have to use dlls? Otherwise
> > > I'll go with static libs.
> > >
> > > Julien
> > >
> > > > -----Original Message-----
> > > > From: Bing Jian [mailto:bjian at cise . ufl . edu]
> > > > Sent: Thursday, October 02, 2003 9:27 AM
> > > > To: Julien Jomier
> > > > Cc: insight-users at itk . org
> > > > Subject: RE: [Insight-users] fltk problem: difference between
> > > > release and debug mode
> > > >
> > > >
> > > >
> > > > Hi Julien,
> > > >
> > > > Thanks for your reply. The problem is that the program
> > I am trying
> > > > to link with fltk is not ITK based.
> > > >
> > > >
> > > > --
> > > > Best wishes,
> > > > Bing Jian
> > > > bjian at cise . ufl . edu
> > > >
> > > >
> > > > On Thu, 2 Oct 2003, Julien Jomier wrote:
> > > >
> > > > > Hi Bing,
> > > > >
> > > > > ITK is using FLTK static libraries (lib) instead of dynamic
> > > > libs (dll)
> > > > > I'm not familiar with the use of the fltkdll.lib
> > > > >
> > > > > Can you try to use
> > > > > fltk.lib and fltkgl.lib, fltkforms.lib, fltkimages.lib instead.
> > > > >
> > > > > Regards,
> > > > >
> > > > > Julien
> > > > >
> > > > > > -----Original Message-----
> > > > > > From: insight-users-admin at itk . org
> > > > > > [mailto:insight-users-admin at itk . org] On Behalf Of Bing Jian
> > > > > > Sent: Thursday, October 02, 2003 8:45 AM
> > > > > > To: insight-users at itk . org
> > > > > > Subject: [Insight-users] fltk problem: difference between
> > > > > > release and debug mode
> > > > > >
> > > > > >
> > > > > >
> > > > > > I sent this message to fltk.general mailling list
> > several days
> > > > > > ago, but got no response so far. Hope I can get some
> > help from
> > > > > > here. Thanks!
> > > > > >
> > > > > > Hello everyone,
> > > > > >
> > > > > > I have one single dialog program. The task is simple, just
> > > > > > choosing an image file from local disk by a file
> > select dialog,
> > > > > > displaying the image in a picturebox in the main form.
> > > > > > processing that image. Something strange is that it behaves
> > > > > > differently when running in release mode and debug mode of
> > > > > > visual c++ 6.0.
> > > > In debug
> > > > > > mode, everything runs ok. But in release mode, the
> > image is not
> > > > > > displayed in the form at all. But the image is loaded
> > > > from disk to
> > > > > > memory successfully and the following processing task is
> > > > > > completed without problem (I know that because I let
> > the program
> > > > > > write the processed image to a file).
> > > > > >
> > > > > > In release mode, I am using fltkdll.lib; In debug
> > mode, I am
> > > > > > using fltkdlld.lib. Is it right?
> > > > > >
> > > > > > Thanks in advance!
> > > > > >
> > > > > >
> > > > > >
> > > > > > --
> > > > > > Best wishes,
> > > > > > Bing Jian
> > > > > > bjian at cise . ufl . edu
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > --
> > > > > > Best wishes,
> > > > > > Bing Jian
> > > > > > bjian at cise . ufl . edu
> > > > > >
> > > > > >
> > > > > >
> > > > > > _______________________________________________
> > > > > > Insight-users mailing list
> > > > > > Insight-users at itk . org
> > > > http://www . itk . org/mailman/listinfo/insight->
> > > > > > users
> > > > > >
> > > > >
> > > > >
> > > >
> > >
> > >
> >
> > _______________________________________________
> > Insight-users mailing list
> > Insight-users at itk . org
> > http://www . itk . org/mailman/listinfo/insight-> users
> >
>
>