[Insight-users] Release error
Luis Ibanez
luis.ibanez at kitware.com
Mon Nov 14 07:29:31 EST 2005
Hi Wlzhu,
You *MUST* be consistent with the compilation
mode that you use in Visual Studio.
If you want to compile your application for
Debug, then you *MUST* compile all the required
libraries for Debug too.
If you want to compile your application for
Release, then you *MUST* compile all the required
libraries for Release too.
You probably compiled ITK for Debug, and now you
are trying to compile your application for Release.
That will not work because Visual Studio put the
libraries in different directories depending on
the compilation mode.
The error message is telling you that you didn't
compiled ITK for release yet.
In practice, it is convenient for you to compile
ITK both for Debug and Release, so you have the
freedom to compile your own application for each
one of those compilation mode, depending on the
stage of your application development.
Regards,
Luis
--------------
wlzhu wrote:
> Hi, I build a program using ITK, the compiler is vc2003. When i use the
> debug configuration to build my program, it's ok. However when i try to
> use Release configuration, A fatal error appeared. Can any one help me
> to solve the problem?
> the error information:
> fatal error LNK1104: cannot open file 'ITKCommon.lib'
>
>
>
>
>
>
>
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> 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