[Insight-users] linker errors VS2010
David Brayford
dbrayford at gmail.com
Wed Sep 14 07:55:48 EDT 2011
I used cmake to configure ITK, but I am using some of the functions in
a separate program. I guess I'll have to look at the ITK project to
see what libraries I need.
David
2011/9/14 Dženan Zukić <dzenanz at gmail.com>:
> I guess you are not using CMake? If not, it is really cumbersome to find the
> missing library, if that is the problem.
>
> On Wed, Sep 14, 2011 at 00:26, David Brayford <dbrayford at gmail.com> wrote:
>>
>> Hi,
>>
>> I am getting the following linker errors when trying to build an
>> external project using itk libraries. I know I am missing one or more
>> libraries from the linker, but don't know which ones.
>>
>> 2>itkgdcm.lib(gdcmJpeg2000.obj) : error LNK2019: unresolved external
>> symbol _opj_image_destroy referenced in function "bool __cdecl
>> gdcm::gdcm_read_JPEG2000_file(void *,char *,unsigned int)"
>> (?gdcm_read_JPEG2000_file at gdcm@@YA_NPAXPADI at Z)
>> 2>itkgdcm.lib(gdcmJpeg2000.obj) : error LNK2019: unresolved external
>> symbol _opj_cio_close referenced in function "bool __cdecl
>> gdcm::gdcm_read_JPEG2000_file(void *,char *,unsigned int)"
>> (?gdcm_read_JPEG2000_file at gdcm@@YA_NPAXPADI at Z)
>> 2>itkgdcm.lib(gdcmJpeg2000.obj) : error LNK2019: unresolved external
>> symbol _opj_destroy_decompress referenced in function "bool __cdecl
>> gdcm::gdcm_read_JPEG2000_file(void *,char *,unsigned int)"
>> (?gdcm_read_JPEG2000_file at gdcm@@YA_NPAXPADI at Z)
>> 2>itkgdcm.lib(gdcmJpeg2000.obj) : error LNK2019: unresolved external
>> symbol _opj_decode referenced in function "bool __cdecl
>> gdcm::gdcm_read_JPEG2000_file(void *,char *,unsigned int)"
>> (?gdcm_read_JPEG2000_file at gdcm@@YA_NPAXPADI at Z)
>> 2>itkgdcm.lib(gdcmJpeg2000.obj) : error LNK2019: unresolved external
>> symbol _opj_cio_open referenced in function "bool __cdecl
>> gdcm::gdcm_read_JPEG2000_file(void *,char *,unsigned int)"
>> (?gdcm_read_JPEG2000_file at gdcm@@YA_NPAXPADI at Z)
>> 2>itkgdcm.lib(gdcmJpeg2000.obj) : error LNK2019: unresolved external
>> symbol _opj_setup_decoder referenced in function "bool __cdecl
>> gdcm::gdcm_read_JPEG2000_file(void *,char *,unsigned int)"
>> (?gdcm_read_JPEG2000_file at gdcm@@YA_NPAXPADI at Z)
>> 2>itkgdcm.lib(gdcmJpeg2000.obj) : error LNK2019: unresolved external
>> symbol _opj_set_event_mgr referenced in function "bool __cdecl
>> gdcm::gdcm_read_JPEG2000_file(void *,char *,unsigned int)"
>> (?gdcm_read_JPEG2000_file at gdcm@@YA_NPAXPADI at Z)
>> 2>itkgdcm.lib(gdcmJpeg2000.obj) : error LNK2019: unresolved external
>> symbol _opj_create_decompress referenced in function "bool __cdecl
>> gdcm::gdcm_read_JPEG2000_file(void *,char *,unsigned int)"
>> (?gdcm_read_JPEG2000_file at gdcm@@YA_NPAXPADI at Z)
>> 2>itkgdcm.lib(gdcmJpeg2000.obj) : error LNK2019: unresolved external
>> symbol _opj_set_default_decoder_parameters referenced in function
>> "bool __cdecl gdcm::gdcm_read_JPEG2000_file(void *,char *,unsigned
>> int)" (?gdcm_read_JPEG2000_file at gdcm@@YA_NPAXPADI at Z)
>> 2>itkgdcm.lib(gdcmJpeg2000.obj) : error LNK2019: unresolved external
>> symbol _opj_image_create referenced in function "struct opj_image *
>> __cdecl gdcm::rawtoimage(char *,struct opj_cparameters
>> *,int,int,int,int,int,int,int)"
>> (?rawtoimage at gdcm@@YAPAUopj_image@@PADPAUopj_cparameters@@HHHHHHH at Z)
>> 2>itkgdcm.lib(gdcmJpeg2000.obj) : error LNK2019: unresolved external
>> symbol _opj_destroy_compress referenced in function "bool __cdecl
>> gdcm::gdcm_write_JPEG2000_file(class std::basic_ostream<char,struct
>> std::char_traits<char> > *,char *,unsigned
>> int,int,int,int,int,int,int,int,unsigned int &)"
>>
>> (?gdcm_write_JPEG2000_file at gdcm@@YA_NPAV?$basic_ostream at DU?$char_traits at D@std@@@std@@PADIHHHHHHHAAI at Z)
>> 2>itkgdcm.lib(gdcmJpeg2000.obj) : error LNK2019: unresolved external
>> symbol _cio_tell referenced in function "bool __cdecl
>> gdcm::gdcm_write_JPEG2000_file(class std::basic_ostream<char,struct
>> std::char_traits<char> > *,char *,unsigned
>> int,int,int,int,int,int,int,int,unsigned int &)"
>>
>> (?gdcm_write_JPEG2000_file at gdcm@@YA_NPAV?$basic_ostream at DU?$char_traits at D@std@@@std@@PADIHHHHHHHAAI at Z)
>> 2>itkgdcm.lib(gdcmJpeg2000.obj) : error LNK2019: unresolved external
>> symbol _opj_encode referenced in function "bool __cdecl
>> gdcm::gdcm_write_JPEG2000_file(class std::basic_ostream<char,struct
>> std::char_traits<char> > *,char *,unsigned
>> int,int,int,int,int,int,int,int,unsigned int &)"
>>
>> (?gdcm_write_JPEG2000_file at gdcm@@YA_NPAV?$basic_ostream at DU?$char_traits at D@std@@@std@@PADIHHHHHHHAAI at Z)
>> 2>itkgdcm.lib(gdcmJpeg2000.obj) : error LNK2019: unresolved external
>> symbol _opj_setup_encoder referenced in function "bool __cdecl
>> gdcm::gdcm_write_JPEG2000_file(class std::basic_ostream<char,struct
>> std::char_traits<char> > *,char *,unsigned
>> int,int,int,int,int,int,int,int,unsigned int &)"
>>
>> (?gdcm_write_JPEG2000_file at gdcm@@YA_NPAV?$basic_ostream at DU?$char_traits at D@std@@@std@@PADIHHHHHHHAAI at Z)
>> 2>itkgdcm.lib(gdcmJpeg2000.obj) : error LNK2019: unresolved external
>> symbol _opj_create_compress referenced in function "bool __cdecl
>> gdcm::gdcm_write_JPEG2000_file(class std::basic_ostream<char,struct
>> std::char_traits<char> > *,char *,unsigned
>> int,int,int,int,int,int,int,int,unsigned int &)"
>>
>> (?gdcm_write_JPEG2000_file at gdcm@@YA_NPAV?$basic_ostream at DU?$char_traits at D@std@@@std@@PADIHHHHHHHAAI at Z)
>> 2>itkgdcm.lib(gdcmJpeg2000.obj) : error LNK2019: unresolved external
>> symbol _opj_set_default_encoder_parameters referenced in function
>> "bool __cdecl gdcm::gdcm_write_JPEG2000_file(class
>> std::basic_ostream<char,struct std::char_traits<char> > *,char
>> *,unsigned int,int,int,int,int,int,int,int,unsigned int &)"
>>
>> (?gdcm_write_JPEG2000_file at gdcm@@YA_NPAV?$basic_ostream at DU?$char_traits at D@std@@@std@@PADIHHHHHHHAAI at Z)
>>
>> Here are the libraries I am linking to:
>>
>>
>> wsock32.lib;rpcrt4.lib;Snmpapi.lib;itkv3p_netlib.lib;itkNetlibSlatec.lib;ITKznz.lib;itkvnl_inst.lib;itkvnl_algo.lib;ITKMetaIO.lib;itkzlib.lib;itktiff.lib;ITKniftiio.lib;itkjpeg16.lib;itkjpeg12.lib;itkjpeg8.lib;ITKDICOMParser.lib;itkvnl.lib;itkvcl.lib;itksys.lib;itkpng.lib;ITKNrrdIO.lib;ITKIO.lib;ITKCommon.lib;ITKBasicFilters.lib;ITKAlgorithms.lib;itkgdcm.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;comdlg32.lib;advapi32.lib;vtkCommon.lib;vtkIO.lib;vtkImaging.lib;vtkRendering.lib;vtkVolumeRendering.lib;vtkGraphics.lib;vtkFiltering.lib;vtkGenericFiltering.lib;vtkHybrid.lib;..\..\bin\Debug\vtkvscSpineRegistration.lib;..\..\bin\Debug\vtkvscIO.lib;vtkexoIIc.lib;vtkverdict.lib;vtkftgl.lib;vtkfreetype.lib;opengl32.lib;vtkDICOMParser.lib;vtkNetCDF_cxx.lib;vtkNetCDF.lib;vtkmetaio.lib;comctl32.lib;vtksqlite.lib;vtkpng.lib;vtktiff.lib;vtkzlib.lib;vtkjpeg.lib;vtkexpat.lib;vfw32.lib;..\..\bin\Debug\vtkvscCommon.lib;vtksys.lib;ws2_32.lib;..
>>
>> \..\bin\Debug\vtkvscDicomToolkit.lib;netapi32.lib;%(AdditionalDependencies)
>>
>>
>>
>> David
>> _____________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Kitware offers ITK Training Courses, for more information visit:
>> http://www.kitware.com/products/protraining.html
>>
>> Please keep messages on-topic and check the ITK FAQ at:
>> http://www.itk.org/Wiki/ITK_FAQ
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.itk.org/mailman/listinfo/insight-users
>
>
More information about the Insight-users
mailing list