[Insight-users] Link Error! Help.
firebird at medison.com
firebird at medison.com
Wed Apr 13 03:55:42 EDT 2005
Dear Martin Urschler,
Thank you for your information.
After check my project setting and change runtime-library setting to =
Debug Multithreaded DLL,=20
Compiling and Link was successful without CMakeSetup.exe. Thank you =
very much.=20
=20
I have one more question. I tried to test Gradient Anisotropic =
Diffusion Filter with ITK, and copy the result data to memory buffer, =
not file.
I test with GetBufferPointer method of itk::Image, but I failed.=20
So, I can't find the method which export to memory buffer from output =
data of itk::Image, yet.
Please let me know if you have solution of this problem.=20
Thank you.
=20
Best regards,
Eui Chul Kwon
=20
-----Original Message-----
From: Martin Urschler [mailto:martin at urschler.info]
Sent: Tuesday, April 12, 2005 11:05 PM
To: =B1=C7=C0=C7=C3=B6
Cc: insight-users at itk.org
Subject: Re: [Insight-users] Link Error! Help.
firebird at medison.com wrote:
> But, The link was successful when I used CMakeSetup.exe.
>=20
> I wonder how I can compile ITK code successfully without=20
> CMakeSetup.exe, when I use Visual C++ 6.0
>=20
> Do I always have to compile with CMakeSetup.exe?=20
>=20
> Thank you.
No, of course you don't have to compile with CMakeSetup.exe since what
CMakeSetup does for you is to create a visual c project, which may be
built manually as well.
Nevertheless it makes sense to use CMake since the hassles that you
stumbled across are part of the reasons why CMake was designed...
In your case I would suppose that you are linking against a wrong MSVC C
runtime library. You should check against which runtime your compiled
ITK was linked (I suppose Multithreaded DLL for release or Debug
Multithreaded DLL for debug build) and also choose the same runtime to
link against in your project (Project Settings, C/C++, Code Generation).
Another suggestion would be to create a MSVC project file of your
example with CMakeSetup and note all the settings in your created
project file (like, include dirs, lib dirs, linked libraries, linked
runtime library, settings for rtti and exception handling, ...). Then
use the same settings for your project.
HTH,
Martin Urschler
More information about the Insight-users
mailing list