[Insight-users] Error linking to ITK MFC
Luis Ibanez
luis.ibanez at kitware.com
Mon Mar 5 07:55:03 EST 2007
Hi Kevin,
You probably have ITKAlgorithms.lib in a "Release" directory
while you are trying to build your application for "Debug",
or the other way around.
Note that this is unrelated to whether you are using MFC or not.
Please make sure that you are compiling your application
for the same configuration that you used when building
ITK.
For example, if you build ITK for Release, you MUST also
build the application for Release.
or
if you build ITK for Debug, you MUST also build the
applications for Debug.
It may be wise to actually have both builds, if you are
actively developing.
Regards,
Luis
================
Kevin Hu wrote:
> Hi All,
>
> I've successfully compiled ITK into all the libraries. I've also setup my
> app to use CMake. However, when I try to compile my app, VS 6.0 can't
> seem to find the ITK libraries:
>
> Linking...
> LINK : fatal error LNK1181: cannot open input file "ITKAlgorithms.lib"
> Error executing link.exe.
>
> When I check my ITK_DIR, the libary exists. Any ideas?
>
> Kevin Hu
> Boston University
> _______________________________________________
> 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