[Insight-users] (no subject)

Luis Ibanez luis . ibanez at kitware . com
Mon, 04 Aug 2003 11:39:45 -0400


Hi Adolfo,


Please post the CMakeLists.txt file of your project.

It seems that you are missing some libaries in the
link process.

Do *not* edit our VC++ environment, do all configuration
changes in the CMakeLists.txt file. That will save you
a lot of headaches.


Thanks


  Luis

-------------------------
fito at unizar . es wrote:
> Hello everybody there!
> 
> I'm a beginner in ITK world. I'm compiling my first program. I've used CMake to 
> get a .dsw for MSVC++6.0. All is OK if I use itk::image class. But if I try 
> using itk::matrix, the compiler answers with:
> 
> ------------------------------------------------------
> Building Custom Rule "C:\Documents and Settings\agonzalez\Mis 
> documentos\c_agonzalez\libreria\CMakeLists.txt"
> Compiling...
> pruebaitk.cpp
> Linking...
> pruebaitk.obj : error LNK2001: unresolved external symbol "public: void 
> __thiscall vnl_matrix<int>::set_identity(void)" (?set_identity@?
> $vnl_matrix at H@@QAEXXZ)
> pruebaitk.obj : error LNK2001: unresolved external symbol "public: static int 
> const itk::NumericTraits<int>::Zero" (?Zero@?$NumericTraits at H@itk@@2HB)
> pruebaitk.obj : error LNK2001: unresolved external symbol "protected: void 
> __thiscall vnl_matrix<int>::destroy(void)" (?destroy@?$vnl_matrix at H@@IAEXXZ)
> pruebaitk.obj : error LNK2001: unresolved external symbol "public: static int * 
> __cdecl vnl_c_vector<int>::allocate_T(int)" (?allocate_T@?
> $vnl_c_vector at H@@SAPAHH at Z)
> Debug/myProject.exe : fatal error LNK1120: 4 unresolved externals
> Error executing link.exe.
> 
> ALL_BUILD - 5 error(s), 0 warning(s)
> ------------------------------------------------------
> 
> I've tried including the libraries into the workspace by myself, but it doesn't 
> work.
> 
> Any suggestion about the matter will be welcome and appreciated.
> 
> Thanks in advance!
> Adolfo G.U.
> 
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk . org
> http://www . itk . org/mailman/listinfo/insight-users
>