[Insight-users] fatal error LNK1104: cannot open file "ITKAlgorithms.lib"
Luis Ibanez
luis.ibanez at kitware.com
Mon, 09 Feb 2004 13:26:16 -0500
Hi Chunyan,
You *MUST* build your project and *ALL* the libraries it
uses in the *SAME* compilation mode.
If you want to build your project for "Release" you must
compile ITK, and VTK and Qt for Release too.
What happens in your case is that you have not compiled ITK
for release. Visual Studio puts the binaries in subdirectories
that match the compilation mode. That is, when you compile
for Debug, the binaries go to a directory bin/Debug, and when
you compile for Release, the binaries go to a directory bin/Release.
When you build your project for release it will look for
ITK libraries being in the directory bin/Release (it will not care
for the libraries availble in bin/Debug). Please recompile all the
libraries for release before you attempt to rebuild your project.
Regards,
Luis
-------------------
jiang wrote:
>Hi, all,
>I try to build my project as release. I set VC Build/Set Active
>Configurations.../My project - Win32 Release
>When I build it, the link error occurs: fatal error LNK1104: cannot open
>file "ITKAlgorithms.lib"
>The "ITKAlgorithms.lib" do exist in my itk/bin/Debug folder.
>What is the problem?
>
>
>Thanks a lot!
>
>
>Chunyan
>
>_______________________________________________
>Insight-users mailing list
>Insight-users at itk.org
>http://www.itk.org/mailman/listinfo/insight-users
>
>
>