While building the code I'm getting this error undefined reference to `vtable for itk::ImageFileReaderException'

‘’’
libexample-postgresql-lib.a(UserService.cpp.o): In function itk::ImageFileReaderException::ImageFileReaderException(char const*, unsigned int, char const*, char const*)': UserService.cpp:(.text._ZN3itk24ImageFileReaderExceptionC2EPKcjS2_S2_[_ZN3itk24ImageFileReaderExceptionC5EPKcjS2_S2_]+0x3c): undefined reference to vtable for itk::ImageFileReaderException’
libexample-postgresql-lib.a(UserService.cpp.o):(.data.rel+0x0): undefined reference to itk::BMPImageIOFactoryRegister__Private()' libexample-postgresql-lib.a(UserService.cpp.o):(.data.rel+0x8): undefined reference to itk::BioRadImageIOFactoryRegister__Private()’
libexample-postgresql-lib.a(UserService.cpp.o):(.data.rel+0x10): undefined reference to itk::Bruker2dseqImageIOFactoryRegister__Private()' libexample-postgresql-lib.a(UserService.cpp.o):(.data.rel+0x18): undefined reference to itk::GDCMImageIOFactoryRegister__Private()’
libexample-postgresql-lib.a(UserService.cpp.o):(.data.rel+0x20): undefined reference to itk::GE4ImageIOFactoryRegister__Private()' libexample-postgresql-lib.a(UserService.cpp.o):(.data.rel+0x28): undefined reference to itk::GE5ImageIOFactoryRegister__Private()’
libexample-postgresql-lib.a(UserService.cpp.o):(.data.rel+0x30): undefined reference to itk::GiplImageIOFactoryRegister__Private()' libexample-postgresql-lib.a(UserService.cpp.o):(.data.rel+0x38): undefined reference to itk::HDF5ImageIOFactoryRegister__Private()’
libexample-postgresql-lib.a(UserService.cpp.o):(.data.rel+0x40): undefined reference to itk::JPEGImageIOFactoryRegister__Private()' libexample-postgresql-lib.a(UserService.cpp.o):(.data.rel+0x48): undefined reference to itk::JPEG2000ImageIOFactoryRegister__Private()’
libexample-postgresql-lib.a(UserService.cpp.o):(.data.rel+0x50): undefined reference to itk::LSMImageIOFactoryRegister__Private()' libexample-postgresql-lib.a(UserService.cpp.o):(.data.rel+0x58): undefined reference to itk::MINCImageIOFactoryRegister__Private()’
libexample-postgresql-lib.a(UserService.cpp.o):(.data.rel+0x60): undefined reference to itk::MRCImageIOFactoryRegister__Private()' libexample-postgresql-lib.a(UserService.cpp.o):(.data.rel+0x68): undefined reference to itk::MetaImageIOFactoryRegister__Private()’
libexample-postgresql-lib.a(UserService.cpp.o):(.data.rel+0x70): undefined reference to itk::NiftiImageIOFactoryRegister__Private()' libexample-postgresql-lib.a(UserService.cpp.o):(.data.rel+0x78): undefined reference to itk::NrrdImageIOFactoryRegister__Private()’
libexample-postgresql-lib.a(UserService.cpp.o):(.data.rel+0x80): undefined reference to itk::PNGImageIOFactoryRegister__Private()' libexample-postgresql-lib.a(UserService.cpp.o):(.data.rel+0x88): undefined reference to itk::StimulateImageIOFactoryRegister__Private()’
libexample-postgresql-lib.a(UserService.cpp.o):(.data.rel+0x90): undefined reference to itk::TIFFImageIOFactoryRegister__Private()' libexample-postgresql-lib.a(UserService.cpp.o):(.data.rel+0x98): undefined reference to itk::VTKImageIOFactoryRegister__Private()’
libexample-postgresql-lib.a(UserService.cpp.o): In function itk::ImageFileWriterException::ImageFileWriterException(char const*, unsigned int, char const*, char const*)': UserService.cpp:(.text._ZN3itk24ImageFileWriterExceptionC2EPKcjS2_S2_[_ZN3itk24ImageFileWriterExceptionC5EPKcjS2_S2_]+0x3c): undefined reference to vtable for itk::ImageFileWriterException’
libexample-postgresql-lib.a(UserService.cpp.o): In function itk::ImageFileWriterException::ImageFileWriterException(itk::ImageFileWriterException const&)': UserService.cpp:(.text._ZN3itk24ImageFileWriterExceptionC2ERKS0_[_ZN3itk24ImageFileWriterExceptionC5ERKS0_]+0x26): undefined reference to vtable for itk::ImageFileWriterException’
libexample-postgresql-lib.a(UserService.cpp.o): In function itk::ImageFileWriter<itk::Image<unsigned char, 2u> >::Write()': UserService.cpp:(.text._ZN3itk15ImageFileWriterINS_5ImageIhLj2EEEE5WriteEv[_ZN3itk15ImageFileWriterINS_5ImageIhLj2EEEE5WriteEv]+0x9d3): undefined reference to itk::ImageIOFactory::CreateImageIO(char const*, itk::CommonEnums::IOFileMode)’
UserService.cpp:(.text._ZN3itk15ImageFileWriterINS_5ImageIhLj2EEEE5WriteEv[_ZN3itk15ImageFileWriterINS_5ImageIhLj2EEEE5WriteEv]+0xba4): undefined reference to typeinfo for itk::ImageIOBase' UserService.cpp:(.text._ZN3itk15ImageFileWriterINS_5ImageIhLj2EEEE5WriteEv[_ZN3itk15ImageFileWriterINS_5ImageIhLj2EEEE5WriteEv]+0xd61): undefined reference to itk::ImageFileWriterException::~ImageFileWriterException()’
UserService.cpp:(.text._ZN3itk15ImageFileWriterINS_5ImageIhLj2EEEE5WriteEv[_ZN3itk15ImageFileWriterINS_5ImageIhLj2EEEE5WriteEv]+0xd6b): undefined reference to typeinfo for itk::ImageFileWriterException' UserService.cpp:(.text._ZN3itk15ImageFileWriterINS_5ImageIhLj2EEEE5WriteEv[_ZN3itk15ImageFileWriterINS_5ImageIhLj2EEEE5WriteEv]+0xe35): undefined reference to itk::ImageIOBase::SetNumberOfDimensions(unsigned int)’
UserService.cpp:(.text._ZN3itk15ImageFileWriterINS_5ImageIhLj2EEEE5WriteEv[_ZN3itk15ImageFileWriterINS_5ImageIhLj2EEEE5WriteEv]+0x20bf): undefined reference to itk::ImageFileWriterException::~ImageFileWriterException()' libexample-postgresql-lib.a(UserService.cpp.o): In function itk::ImageFileWriter<itk::Image<unsigned char, 3u> >::Write()’:
UserService.cpp:(.text._ZN3itk15ImageFileWriterINS_5ImageIhLj3EEEE5WriteEv[_ZN3itk15ImageFileWriterINS_5ImageIhLj3EEEE5WriteEv]+0x9d3): undefined reference to itk::ImageIOFactory::CreateImageIO(char const*, itk::CommonEnums::IOFileMode)' UserService.cpp:(.text._ZN3itk15ImageFileWriterINS_5ImageIhLj3EEEE5WriteEv[_ZN3itk15ImageFileWriterINS_5ImageIhLj3EEEE5WriteEv]+0xba4): undefined reference to typeinfo for itk::ImageIOBase’
UserService.cpp:(.text._ZN3itk15ImageFileWriterINS_5ImageIhLj3EEEE5WriteEv[_ZN3itk15ImageFileWriterINS_5ImageIhLj3EEEE5WriteEv]+0xd61): undefined reference to itk::ImageFileWriterException::~ImageFileWriterException()' UserService.cpp:(.text._ZN3itk15ImageFileWriterINS_5ImageIhLj3EEEE5WriteEv[_ZN3itk15ImageFileWriterINS_5ImageIhLj3EEEE5WriteEv]+0xd6b): undefined reference to typeinfo for itk::ImageFileWriterException’
UserService.cpp:(.text._ZN3itk15ImageFileWriterINS_5ImageIhLj3EEEE5WriteEv[_ZN3itk15ImageFileWriterINS_5ImageIhLj3EEEE5WriteEv]+0xe35): undefined reference to itk::ImageIOBase::SetNumberOfDimensions(unsigned int)' UserService.cpp:(.text._ZN3itk15ImageFileWriterINS_5ImageIhLj3EEEE5WriteEv[_ZN3itk15ImageFileWriterINS_5ImageIhLj3EEEE5WriteEv]+0x20d5): undefined reference to itk::ImageFileWriterException::~ImageFileWriterException()’
libexample-postgresql-lib.a(UserService.cpp.o): In function itk::ImageFileWriter<itk::Image<unsigned char, 2u> >::GenerateData()': UserService.cpp:(.text._ZN3itk15ImageFileWriterINS_5ImageIhLj2EEEE12GenerateDataEv[_ZN3itk15ImageFileWriterINS_5ImageIhLj2EEEE12GenerateDataEv]+0x7f0): undefined reference to itk::ImageFileWriterException::~ImageFileWriterException()’
UserService.cpp:(.text._ZN3itk15ImageFileWriterINS_5ImageIhLj2EEEE12GenerateDataEv[_ZN3itk15ImageFileWriterINS_5ImageIhLj2EEEE12GenerateDataEv]+0x7fa): undefined reference to typeinfo for itk::ImageFileWriterException' UserService.cpp:(.text._ZN3itk15ImageFileWriterINS_5ImageIhLj2EEEE12GenerateDataEv[_ZN3itk15ImageFileWriterINS_5ImageIhLj2EEEE12GenerateDataEv]+0x93d): undefined reference to itk::ImageFileWriterException::~ImageFileWriterException()’
libexample-postgresql-lib.a(UserService.cpp.o): In function itk::ImageFileWriter<itk::Image<unsigned char, 3u> >::GenerateData()': UserService.cpp:(.text._ZN3itk15ImageFileWriterINS_5ImageIhLj3EEEE12GenerateDataEv[_ZN3itk15ImageFileWriterINS_5ImageIhLj3EEEE12GenerateDataEv]+0x806): undefined reference to itk::ImageFileWriterException::~ImageFileWriterException()’
UserService.cpp:(.text._ZN3itk15ImageFileWriterINS_5ImageIhLj3EEEE12GenerateDataEv[_ZN3itk15ImageFileWriterINS_5ImageIhLj3EEEE12GenerateDataEv]+0x810): undefined reference to typeinfo for itk::ImageFileWriterException' UserService.cpp:(.text._ZN3itk15ImageFileWriterINS_5ImageIhLj3EEEE12GenerateDataEv[_ZN3itk15ImageFileWriterINS_5ImageIhLj3EEEE12GenerateDataEv]+0x953): undefined reference to itk::ImageFileWriterException::~ImageFileWriterException()’
libexample-postgresql-lib.a(UserService.cpp.o): In function itk::ImageFileReaderException::ImageFileReaderException(itk::ImageFileReaderException const&)': UserService.cpp:(.text._ZN3itk24ImageFileReaderExceptionC2ERKS0_[_ZN3itk24ImageFileReaderExceptionC5ERKS0_]+0x26): undefined reference to vtable for itk::ImageFileReaderException’
libexample-postgresql-lib.a(UserService.cpp.o): In function itk::ImageFileReader<itk::Image<unsigned char, 2u>, itk::DefaultConvertPixelTraits<unsigned char> >::GenerateOutputInformation()': UserService.cpp:(.text._ZN3itk15ImageFileReaderINS_5ImageIhLj2EEENS_25DefaultConvertPixelTraitsIhEEE25GenerateOutputInformationEv[_ZN3itk15ImageFileReaderINS_5ImageIhLj2EEENS_25DefaultConvertPixelTraitsIhEEE25GenerateOutputInformationEv]+0x214): undefined reference to itk::ImageFileReaderException::~ImageFileReaderException()’
UserService.cpp:(.text._ZN3itk15ImageFileReaderINS_5ImageIhLj2EEENS_25DefaultConvertPixelTraitsIhEEE25GenerateOutputInformationEv[_ZN3itk15ImageFileReaderINS_5ImageIhLj2EEENS_25DefaultConvertPixelTraitsIhEEE25GenerateOutputInformationEv]+0x21e): undefined reference to typeinfo for itk::ImageFileReaderException' UserService.cpp:(.text._ZN3itk15ImageFileReaderINS_5ImageIhLj2EEENS_25DefaultConvertPixelTraitsIhEEE25GenerateOutputInformationEv[_ZN3itk15ImageFileReaderINS_5ImageIhLj2EEENS_25DefaultConvertPixelTraitsIhEEE25GenerateOutputInformationEv]+0x2a7): undefined reference to itk::ImageIOFactory::CreateImageIO(char const*, itk::CommonEnums::IOFileMode)’
UserService.cpp:(.text._ZN3itk15ImageFileReaderINS_5ImageIhLj2EEENS_25DefaultConvertPixelTraitsIhEEE25GenerateOutputInformationEv[_ZN3itk15ImageFileReaderINS_5ImageIhLj2EEENS_25DefaultConvertPixelTraitsIhEEE25GenerateOutputInformationEv]+0x494): undefined reference to typeinfo for itk::ImageIOBase' UserService.cpp:(.text._ZN3itk15ImageFileReaderINS_5ImageIhLj2EEENS_25DefaultConvertPixelTraitsIhEEE25GenerateOutputInformationEv[_ZN3itk15ImageFileReaderINS_5ImageIhLj2EEENS_25DefaultConvertPixelTraitsIhEEE25GenerateOutputInformationEv]+0x65d): undefined reference to itk::ImageFileReaderException::~ImageFileReaderException()’
UserService.cpp:(.text._ZN3itk15ImageFileReaderINS_5ImageIhLj2EEENS_25DefaultConvertPixelTraitsIhEEE25GenerateOutputInformationEv[_ZN3itk15ImageFileReaderINS_5ImageIhLj2EEENS_25DefaultConvertPixelTraitsIhEEE25GenerateOutputInformationEv]+0x667): undefined reference to typeinfo for itk::ImageFileReaderException' UserService.cpp:(.text._ZN3itk15ImageFileReaderINS_5ImageIhLj2EEENS_25DefaultConvertPixelTraitsIhEEE25GenerateOutputInformationEv[_ZN3itk15ImageFileReaderINS_5ImageIhLj2EEENS_25DefaultConvertPixelTraitsIhEEE25GenerateOutputInformationEv]+0xfe0): undefined reference to itk::ImageFileReaderException::~ImageFileReaderException()’
libexample-postgresql-lib.a(UserService.cpp.o): In function itk::ImageFileReader<itk::Image<unsigned char, 2u>, itk::DefaultConvertPixelTraits<unsigned char> >::GenerateData()': UserService.cpp:(.text._ZN3itk15ImageFileReaderINS_5ImageIhLj2EEENS_25DefaultConvertPixelTraitsIhEEE12GenerateDataEv[_ZN3itk15ImageFileReaderINS_5ImageIhLj2EEENS_25DefaultConvertPixelTraitsIhEEE12GenerateDataEv]+0x66d): undefined reference to itk::ImageIOBase::GetComponentTypeAsStringabi:cxx11
UserService.cpp:(.text._ZN3itk15ImageFileReaderINS_5ImageIhLj2EEENS_25DefaultConvertPixelTraitsIhEEE12GenerateDataEv[_ZN3itk15ImageFileReaderINS_5ImageIhLj2EEENS_25DefaultConvertPixelTraitsIhEEE12GenerateDataEv]+0x6be): undefined reference to itk::ImageIOBase::GetComponentTypeAsString[abi:cxx11](itk::CommonEnums::IOComponent)' libexample-postgresql-lib.a(UserService.cpp.o): In function itk::ImageFileReader<itk::Image<float, 2u>, itk::DefaultConvertPixelTraits >::GenerateOutputInformation()’:
UserService.cpp:(.text._ZN3itk15ImageFileReaderINS_5ImageIfLj2EEENS_25DefaultConvertPixelTraitsIfEEE25GenerateOutputInformationEv[_ZN3itk15ImageFileReaderINS_5ImageIfLj2EEENS_25DefaultConvertPixelTraitsIfEEE25GenerateOutputInformationEv]+0x214): undefined reference to itk::ImageFileReaderException::~ImageFileReaderException()' UserService.cpp:(.text._ZN3itk15ImageFileReaderINS_5ImageIfLj2EEENS_25DefaultConvertPixelTraitsIfEEE25GenerateOutputInformationEv[_ZN3itk15ImageFileReaderINS_5ImageIfLj2EEENS_25DefaultConvertPixelTraitsIfEEE25GenerateOutputInformationEv]+0x21e): undefined reference to typeinfo for itk::ImageFileReaderException’
UserService.cpp:(.text._ZN3itk15ImageFileReaderINS_5ImageIfLj2EEENS_25DefaultConvertPixelTraitsIfEEE25GenerateOutputInformationEv[_ZN3itk15ImageFileReaderINS_5ImageIfLj2EEENS_25DefaultConvertPixelTraitsIfEEE25GenerateOutputInformationEv]+0x2a7): undefined reference to itk::ImageIOFactory::CreateImageIO(char const*, itk::CommonEnums::IOFileMode)' UserService.cpp:(.text._ZN3itk15ImageFileReaderINS_5ImageIfLj2EEENS_25DefaultConvertPixelTraitsIfEEE25GenerateOutputInformationEv[_ZN3itk15ImageFileReaderINS_5ImageIfLj2EEENS_25DefaultConvertPixelTraitsIfEEE25GenerateOutputInformationEv]+0x494): undefined reference to typeinfo for itk::ImageIOBase’
UserService.cpp:(.text._ZN3itk15ImageFileReaderINS_5ImageIfLj2EEENS_25DefaultConvertPixelTraitsIfEEE25GenerateOutputInformationEv[_ZN3itk15ImageFileReaderINS_5ImageIfLj2EEENS_25DefaultConvertPixelTraitsIfEEE25GenerateOutputInformationEv]+0x65d): undefined reference to itk::ImageFileReaderException::~ImageFileReaderException()' UserService.cpp:(.text._ZN3itk15ImageFileReaderINS_5ImageIfLj2EEENS_25DefaultConvertPixelTraitsIfEEE25GenerateOutputInformationEv[_ZN3itk15ImageFileReaderINS_5ImageIfLj2EEENS_25DefaultConvertPixelTraitsIfEEE25GenerateOutputInformationEv]+0x667): undefined reference to typeinfo for itk::ImageFileReaderException’
UserService.cpp:(.text._ZN3itk15ImageFileReaderINS_5ImageIfLj2EEENS_25DefaultConvertPixelTraitsIfEEE25GenerateOutputInformationEv[_ZN3itk15ImageFileReaderINS_5ImageIfLj2EEENS_25DefaultConvertPixelTraitsIfEEE25GenerateOutputInformationEv]+0xfe0): undefined reference to itk::ImageFileReaderException::~ImageFileReaderException()' libexample-postgresql-lib.a(UserService.cpp.o): In function itk::ImageFileReader<itk::Image<float, 2u>, itk::DefaultConvertPixelTraits >::GenerateData()’:
UserService.cpp:(.text._ZN3itk15ImageFileReaderINS_5ImageIfLj2EEENS_25DefaultConvertPixelTraitsIfEEE12GenerateDataEv[_ZN3itk15ImageFileReaderINS_5ImageIfLj2EEENS_25DefaultConvertPixelTraitsIfEEE12GenerateDataEv]+0x66d): undefined reference to itk::ImageIOBase::GetComponentTypeAsString[abi:cxx11](itk::CommonEnums::IOComponent)' UserService.cpp:(.text._ZN3itk15ImageFileReaderINS_5ImageIfLj2EEENS_25DefaultConvertPixelTraitsIfEEE12GenerateDataEv[_ZN3itk15ImageFileReaderINS_5ImageIfLj2EEENS_25DefaultConvertPixelTraitsIfEEE12GenerateDataEv]+0x6be): undefined reference to itk::ImageIOBase::GetComponentTypeAsStringabi:cxx11
libexample-postgresql-lib.a(UserService.cpp.o): In function itk::ImageFileReader<itk::Image<unsigned char, 2u>, itk::DefaultConvertPixelTraits<unsigned char> >::TestFileExistanceAndReadability()': UserService.cpp:(.text._ZN3itk15ImageFileReaderINS_5ImageIhLj2EEENS_25DefaultConvertPixelTraitsIhEEE31TestFileExistanceAndReadabilityEv[_ZN3itk15ImageFileReaderINS_5ImageIhLj2EEENS_25DefaultConvertPixelTraitsIhEEE31TestFileExistanceAndReadabilityEv]+0x183): undefined reference to itk::ImageFileReaderException::~ImageFileReaderException()’
UserService.cpp:(.text._ZN3itk15ImageFileReaderINS_5ImageIhLj2EEENS_25DefaultConvertPixelTraitsIhEEE31TestFileExistanceAndReadabilityEv[_ZN3itk15ImageFileReaderINS_5ImageIhLj2EEENS_25DefaultConvertPixelTraitsIhEEE31TestFileExistanceAndReadabilityEv]+0x18d): undefined reference to typeinfo for itk::ImageFileReaderException' UserService.cpp:(.text._ZN3itk15ImageFileReaderINS_5ImageIhLj2EEENS_25DefaultConvertPixelTraitsIhEEE31TestFileExistanceAndReadabilityEv[_ZN3itk15ImageFileReaderINS_5ImageIhLj2EEENS_25DefaultConvertPixelTraitsIhEEE31TestFileExistanceAndReadabilityEv]+0x326): undefined reference to itk::ImageFileReaderException::~ImageFileReaderException()’
UserService.cpp:(.text._ZN3itk15ImageFileReaderINS_5ImageIhLj2EEENS_25DefaultConvertPixelTraitsIhEEE31TestFileExistanceAndReadabilityEv[_ZN3itk15ImageFileReaderINS_5ImageIhLj2EEENS_25DefaultConvertPixelTraitsIhEEE31TestFileExistanceAndReadabilityEv]+0x330): undefined reference to typeinfo for itk::ImageFileReaderException' UserService.cpp:(.text._ZN3itk15ImageFileReaderINS_5ImageIhLj2EEENS_25DefaultConvertPixelTraitsIhEEE31TestFileExistanceAndReadabilityEv[_ZN3itk15ImageFileReaderINS_5ImageIhLj2EEENS_25DefaultConvertPixelTraitsIhEEE31TestFileExistanceAndReadabilityEv]+0x3a9): undefined reference to itk::ImageFileReaderException::~ImageFileReaderException()’
UserService.cpp:(.text._ZN3itk15ImageFileReaderINS_5ImageIhLj2EEENS_25DefaultConvertPixelTraitsIhEEE31TestFileExistanceAndReadabilityEv[_ZN3itk15ImageFileReaderINS_5ImageIhLj2EEENS_25DefaultConvertPixelTraitsIhEEE31TestFileExistanceAndReadabilityEv]+0x3da): undefined reference to itk::ImageFileReaderException::~ImageFileReaderException()' libexample-postgresql-lib.a(UserService.cpp.o): In function itk::ImageFileReader<itk::Image<unsigned char, 2u>, itk::DefaultConvertPixelTraits >::DoConvertBuffer(void*, unsigned long)’:
UserService.cpp:(.text._ZN3itk15ImageFileReaderINS_5ImageIhLj2EEENS_25DefaultConvertPixelTraitsIhEEE15DoConvertBufferEPvm[_ZN3itk15ImageFileReaderINS_5ImageIhLj2EEENS_25DefaultConvertPixelTraitsIhEEE15DoConvertBufferEPvm]+0xb67): undefined reference to itk::ImageIOBase::GetComponentTypeAsString[abi:cxx11](itk::CommonEnums::IOComponent)' UserService.cpp:(.text._ZN3itk15ImageFileReaderINS_5ImageIhLj2EEENS_25DefaultConvertPixelTraitsIhEEE15DoConvertBufferEPvm[_ZN3itk15ImageFileReaderINS_5ImageIhLj2EEENS_25DefaultConvertPixelTraitsIhEEE15DoConvertBufferEPvm]+0xbed): undefined reference to itk::ImageIOBase::GetComponentTypeAsStringabi:cxx11
UserService.cpp:(.text._ZN3itk15ImageFileReaderINS_5ImageIhLj2EEENS_25DefaultConvertPixelTraitsIhEEE15DoConvertBufferEPvm[_ZN3itk15ImageFileReaderINS_5ImageIhLj2EEENS_25DefaultConvertPixelTraitsIhEEE15DoConvertBufferEPvm]+0xc4f): undefined reference to itk::ImageIOBase::GetComponentTypeAsString[abi:cxx11](itk::CommonEnums::IOComponent)' UserService.cpp:(.text._ZN3itk15ImageFileReaderINS_5ImageIhLj2EEENS_25DefaultConvertPixelTraitsIhEEE15DoConvertBufferEPvm[_ZN3itk15ImageFileReaderINS_5ImageIhLj2EEENS_25DefaultConvertPixelTraitsIhEEE15DoConvertBufferEPvm]+0xcb1): undefined reference to itk::ImageIOBase::GetComponentTypeAsStringabi:cxx11
UserService.cpp:(.text._ZN3itk15ImageFileReaderINS_5ImageIhLj2EEENS_25DefaultConvertPixelTraitsIhEEE15DoConvertBufferEPvm[_ZN3itk15ImageFileReaderINS_5ImageIhLj2EEENS_25DefaultConvertPixelTraitsIhEEE15DoConvertBufferEPvm]+0xd13): undefined reference to itk::ImageIOBase::GetComponentTypeAsString[abi:cxx11](itk::CommonEnums::IOComponent)' libexample-postgresql-lib.a(UserService.cpp.o):UserService.cpp:(.text._ZN3itk15ImageFileReaderINS_5ImageIhLj2EEENS_25DefaultConvertPixelTraitsIhEEE15DoConvertBufferEPvm[_ZN3itk15ImageFileReaderINS_5ImageIhLj2EEENS_25DefaultConvertPixelTraitsIhEEE15DoConvertBufferEPvm]+0xd75): more undefined references to itk::ImageIOBase::GetComponentTypeAsStringabi:cxx11’ follow
libexample-postgresql-lib.a(UserService.cpp.o): In function itk::ImageFileReader<itk::Image<unsigned char, 2u>, itk::DefaultConvertPixelTraits<unsigned char> >::DoConvertBuffer(void*, unsigned long)': UserService.cpp:(.text._ZN3itk15ImageFileReaderINS_5ImageIhLj2EEENS_25DefaultConvertPixelTraitsIhEEE15DoConvertBufferEPvm[_ZN3itk15ImageFileReaderINS_5ImageIhLj2EEENS_25DefaultConvertPixelTraitsIhEEE15DoConvertBufferEPvm]+0x1195): undefined reference to itk::ImageFileReaderException::~ImageFileReaderException()’
UserService.cpp:(.text._ZN3itk15ImageFileReaderINS_5ImageIhLj2EEENS_25DefaultConvertPixelTraitsIhEEE15DoConvertBufferEPvm[_ZN3itk15ImageFileReaderINS_5ImageIhLj2EEENS_25DefaultConvertPixelTraitsIhEEE15DoConvertBufferEPvm]+0x119f): undefined reference to typeinfo for itk::ImageFileReaderException' UserService.cpp:(.text._ZN3itk15ImageFileReaderINS_5ImageIhLj2EEENS_25DefaultConvertPixelTraitsIhEEE15DoConvertBufferEPvm[_ZN3itk15ImageFileReaderINS_5ImageIhLj2EEENS_25DefaultConvertPixelTraitsIhEEE15DoConvertBufferEPvm]+0x12e5): undefined reference to itk::ImageFileReaderException::~ImageFileReaderException()’
libexample-postgresql-lib.a(UserService.cpp.o): In function itk::ImageFileReader<itk::Image<float, 2u>, itk::DefaultConvertPixelTraits<float> >::TestFileExistanceAndReadability()': UserService.cpp:(.text._ZN3itk15ImageFileReaderINS_5ImageIfLj2EEENS_25DefaultConvertPixelTraitsIfEEE31TestFileExistanceAndReadabilityEv[_ZN3itk15ImageFileReaderINS_5ImageIfLj2EEENS_25DefaultConvertPixelTraitsIfEEE31TestFileExistanceAndReadabilityEv]+0x183): undefined reference to itk::ImageFileReaderException::~ImageFileReaderException()’
UserService.cpp:(.text._ZN3itk15ImageFileReaderINS_5ImageIfLj2EEENS_25DefaultConvertPixelTraitsIfEEE31TestFileExistanceAndReadabilityEv[_ZN3itk15ImageFileReaderINS_5ImageIfLj2EEENS_25DefaultConvertPixelTraitsIfEEE31TestFileExistanceAndReadabilityEv]+0x18d): undefined reference to typeinfo for itk::ImageFileReaderException' UserService.cpp:(.text._ZN3itk15ImageFileReaderINS_5ImageIfLj2EEENS_25DefaultConvertPixelTraitsIfEEE31TestFileExistanceAndReadabilityEv[_ZN3itk15ImageFileReaderINS_5ImageIfLj2EEENS_25DefaultConvertPixelTraitsIfEEE31TestFileExistanceAndReadabilityEv]+0x326): undefined reference to itk::ImageFileReaderException::~ImageFileReaderException()’
UserService.cpp:(.text._ZN3itk15ImageFileReaderINS_5ImageIfLj2EEENS_25DefaultConvertPixelTraitsIfEEE31TestFileExistanceAndReadabilityEv[_ZN3itk15ImageFileReaderINS_5ImageIfLj2EEENS_25DefaultConvertPixelTraitsIfEEE31TestFileExistanceAndReadabilityEv]+0x330): undefined reference to typeinfo for itk::ImageFileReaderException' UserService.cpp:(.text._ZN3itk15ImageFileReaderINS_5ImageIfLj2EEENS_25DefaultConvertPixelTraitsIfEEE31TestFileExistanceAndReadabilityEv[_ZN3itk15ImageFileReaderINS_5ImageIfLj2EEENS_25DefaultConvertPixelTraitsIfEEE31TestFileExistanceAndReadabilityEv]+0x3a9): undefined reference to itk::ImageFileReaderException::~ImageFileReaderException()’
UserService.cpp:(.text._ZN3itk15ImageFileReaderINS_5ImageIfLj2EEENS_25DefaultConvertPixelTraitsIfEEE31TestFileExistanceAndReadabilityEv[_ZN3itk15ImageFileReaderINS_5ImageIfLj2EEENS_25DefaultConvertPixelTraitsIfEEE31TestFileExistanceAndReadabilityEv]+0x3da): undefined reference to itk::ImageFileReaderException::~ImageFileReaderException()' libexample-postgresql-lib.a(UserService.cpp.o): In function itk::ImageFileReader<itk::Image<float, 2u>, itk::DefaultConvertPixelTraits >::DoConvertBuffer(void*, unsigned long)’:
UserService.cpp:(.text._ZN3itk15ImageFileReaderINS_5ImageIfLj2EEENS_25DefaultConvertPixelTraitsIfEEE15DoConvertBufferEPvm[_ZN3itk15ImageFileReaderINS_5ImageIfLj2EEENS_25DefaultConvertPixelTraitsIfEEE15DoConvertBufferEPvm]+0xb67): undefined reference to itk::ImageIOBase::GetComponentTypeAsString[abi:cxx11](itk::CommonEnums::IOComponent)' UserService.cpp:(.text._ZN3itk15ImageFileReaderINS_5ImageIfLj2EEENS_25DefaultConvertPixelTraitsIfEEE15DoConvertBufferEPvm[_ZN3itk15ImageFileReaderINS_5ImageIfLj2EEENS_25DefaultConvertPixelTraitsIfEEE15DoConvertBufferEPvm]+0xbed): undefined reference to itk::ImageIOBase::GetComponentTypeAsStringabi:cxx11
UserService.cpp:(.text._ZN3itk15ImageFileReaderINS_5ImageIfLj2EEENS_25DefaultConvertPixelTraitsIfEEE15DoConvertBufferEPvm[_ZN3itk15ImageFileReaderINS_5ImageIfLj2EEENS_25DefaultConvertPixelTraitsIfEEE15DoConvertBufferEPvm]+0xc4f): undefined reference to itk::ImageIOBase::GetComponentTypeAsString[abi:cxx11](itk::CommonEnums::IOComponent)' UserService.cpp:(.text._ZN3itk15ImageFileReaderINS_5ImageIfLj2EEENS_25DefaultConvertPixelTraitsIfEEE15DoConvertBufferEPvm[_ZN3itk15ImageFileReaderINS_5ImageIfLj2EEENS_25DefaultConvertPixelTraitsIfEEE15DoConvertBufferEPvm]+0xcb1): undefined reference to itk::ImageIOBase::GetComponentTypeAsStringabi:cxx11
UserService.cpp:(.text._ZN3itk15ImageFileReaderINS_5ImageIfLj2EEENS_25DefaultConvertPixelTraitsIfEEE15DoConvertBufferEPvm[_ZN3itk15ImageFileReaderINS_5ImageIfLj2EEENS_25DefaultConvertPixelTraitsIfEEE15DoConvertBufferEPvm]+0xd13): undefined reference to itk::ImageIOBase::GetComponentTypeAsString[abi:cxx11](itk::CommonEnums::IOComponent)' libexample-postgresql-lib.a(UserService.cpp.o):UserService.cpp:(.text._ZN3itk15ImageFileReaderINS_5ImageIfLj2EEENS_25DefaultConvertPixelTraitsIfEEE15DoConvertBufferEPvm[_ZN3itk15ImageFileReaderINS_5ImageIfLj2EEENS_25DefaultConvertPixelTraitsIfEEE15DoConvertBufferEPvm]+0xd75): more undefined references to itk::ImageIOBase::GetComponentTypeAsStringabi:cxx11’ follow
libexample-postgresql-lib.a(UserService.cpp.o): In function itk::ImageFileReader<itk::Image<float, 2u>, itk::DefaultConvertPixelTraits<float> >::DoConvertBuffer(void*, unsigned long)': UserService.cpp:(.text._ZN3itk15ImageFileReaderINS_5ImageIfLj2EEENS_25DefaultConvertPixelTraitsIfEEE15DoConvertBufferEPvm[_ZN3itk15ImageFileReaderINS_5ImageIfLj2EEENS_25DefaultConvertPixelTraitsIfEEE15DoConvertBufferEPvm]+0x1195): undefined reference to itk::ImageFileReaderException::~ImageFileReaderException()’
UserService.cpp:(.text._ZN3itk15ImageFileReaderINS_5ImageIfLj2EEENS_25DefaultConvertPixelTraitsIfEEE15DoConvertBufferEPvm[_ZN3itk15ImageFileReaderINS_5ImageIfLj2EEENS_25DefaultConvertPixelTraitsIfEEE15DoConvertBufferEPvm]+0x119f): undefined reference to typeinfo for itk::ImageFileReaderException' UserService.cpp:(.text._ZN3itk15ImageFileReaderINS_5ImageIfLj2EEENS_25DefaultConvertPixelTraitsIfEEE15DoConvertBufferEPvm[_ZN3itk15ImageFileReaderINS_5ImageIfLj2EEENS_25DefaultConvertPixelTraitsIfEEE15DoConvertBufferEPvm]+0x12e5): undefined reference to itk::ImageFileReaderException::~ImageFileReaderException()’
collect2: error: ld returned 1 exit status
CMakeFiles/example-postgresql-exe.dir/build.make:251: recipe for target ‘example-postgresql-exe’ failed
make[2]: *** [example-postgresql-exe] Error 1
CMakeFiles/Makefile2:109: recipe for target ‘CMakeFiles/example-postgresql-exe.dir/all’ failed
make[1]: *** [CMakeFiles/example-postgresql-exe.dir/all] Error 2
Makefile:83: recipe for target ‘all’ failed
make: *** [all] Error 2

‘’’

What are you trying to compile? How was it configured?

I’m just trying to run code for “Read an image from a file is to include
the header file” vcpkg
‘’’
#include “itkImage.h”

#include “itkImageFileReader.h”
int
main(int, char * argv[])
{
using PixelType = unsigned char;
constexpr unsigned int Dimension = 3;

using ImageType = itk::Image<PixelType, Dimension>;
using ReaderType = itk::ImageFileReader;
ReaderType::Pointer reader = ReaderType::New();
const char * filename = argv[1];
reader->SetFileName(filename);
reader->Update();
ImageType::Pointer image = reader->GetOutput();

return EXIT_SUCCESS;
}
‘’’
After configuring and building I’m getting this error.
‘’’
[ 50%] Building CXX object CMakeFiles/circle.dir/circle.cxx.o
[100%] Linking CXX executable circle
CMakeFiles/circle.dir/circle.cxx.o: In function itk::ImageFileReaderException::ImageFileReaderException(char const*, unsigned int, char const*, char const*)': circle.cxx:(.text._ZN3itk24ImageFileReaderExceptionC2EPKcjS2_S2_[_ZN3itk24ImageFileReaderExceptionC5EPKcjS2_S2_]+0x3c): undefined reference to vtable for itk::ImageFileReaderException’
CMakeFiles/circle.dir/circle.cxx.o:(.data.rel+0x0): undefined reference to itk::BMPImageIOFactoryRegister__Private()' CMakeFiles/circle.dir/circle.cxx.o:(.data.rel+0x8): undefined reference to itk::BioRadImageIOFactoryRegister__Private()’
CMakeFiles/circle.dir/circle.cxx.o:(.data.rel+0x10): undefined reference to itk::Bruker2dseqImageIOFactoryRegister__Private()' CMakeFiles/circle.dir/circle.cxx.o:(.data.rel+0x18): undefined reference to itk::GDCMImageIOFactoryRegister__Private()’
CMakeFiles/circle.dir/circle.cxx.o:(.data.rel+0x20): undefined reference to itk::GE4ImageIOFactoryRegister__Private()' CMakeFiles/circle.dir/circle.cxx.o:(.data.rel+0x28): undefined reference to itk::GE5ImageIOFactoryRegister__Private()’
CMakeFiles/circle.dir/circle.cxx.o:(.data.rel+0x30): undefined reference to itk::GiplImageIOFactoryRegister__Private()' CMakeFiles/circle.dir/circle.cxx.o:(.data.rel+0x38): undefined reference to itk::HDF5ImageIOFactoryRegister__Private()’
CMakeFiles/circle.dir/circle.cxx.o:(.data.rel+0x40): undefined reference to itk::JPEGImageIOFactoryRegister__Private()' CMakeFiles/circle.dir/circle.cxx.o:(.data.rel+0x48): undefined reference to itk::JPEG2000ImageIOFactoryRegister__Private()’
CMakeFiles/circle.dir/circle.cxx.o:(.data.rel+0x50): undefined reference to itk::LSMImageIOFactoryRegister__Private()' CMakeFiles/circle.dir/circle.cxx.o:(.data.rel+0x58): undefined reference to itk::MINCImageIOFactoryRegister__Private()’
CMakeFiles/circle.dir/circle.cxx.o:(.data.rel+0x60): undefined reference to itk::MRCImageIOFactoryRegister__Private()' CMakeFiles/circle.dir/circle.cxx.o:(.data.rel+0x68): undefined reference to itk::MetaImageIOFactoryRegister__Private()’
CMakeFiles/circle.dir/circle.cxx.o:(.data.rel+0x70): undefined reference to itk::NiftiImageIOFactoryRegister__Private()' CMakeFiles/circle.dir/circle.cxx.o:(.data.rel+0x78): undefined reference to itk::NrrdImageIOFactoryRegister__Private()’
CMakeFiles/circle.dir/circle.cxx.o:(.data.rel+0x80): undefined reference to itk::PNGImageIOFactoryRegister__Private()' CMakeFiles/circle.dir/circle.cxx.o:(.data.rel+0x88): undefined reference to itk::StimulateImageIOFactoryRegister__Private()’
CMakeFiles/circle.dir/circle.cxx.o:(.data.rel+0x90): undefined reference to itk::TIFFImageIOFactoryRegister__Private()' CMakeFiles/circle.dir/circle.cxx.o:(.data.rel+0x98): undefined reference to itk::VTKImageIOFactoryRegister__Private()’
CMakeFiles/circle.dir/circle.cxx.o: In function itk::ImageFileReaderException::ImageFileReaderException(itk::ImageFileReaderException const&)': circle.cxx:(.text._ZN3itk24ImageFileReaderExceptionC2ERKS0_[_ZN3itk24ImageFileReaderExceptionC5ERKS0_]+0x26): undefined reference to vtable for itk::ImageFileReaderException’
CMakeFiles/circle.dir/circle.cxx.o: In function itk::ImageFileReader<itk::Image<unsigned char, 3u>, itk::DefaultConvertPixelTraits<unsigned char> >::GenerateOutputInformation()': circle.cxx:(.text._ZN3itk15ImageFileReaderINS_5ImageIhLj3EEENS_25DefaultConvertPixelTraitsIhEEE25GenerateOutputInformationEv[_ZN3itk15ImageFileReaderINS_5ImageIhLj3EEENS_25DefaultConvertPixelTraitsIhEEE25GenerateOutputInformationEv]+0x214): undefined reference to itk::ImageFileReaderException::~ImageFileReaderException()’
circle.cxx:(.text._ZN3itk15ImageFileReaderINS_5ImageIhLj3EEENS_25DefaultConvertPixelTraitsIhEEE25GenerateOutputInformationEv[_ZN3itk15ImageFileReaderINS_5ImageIhLj3EEENS_25DefaultConvertPixelTraitsIhEEE25GenerateOutputInformationEv]+0x21e): undefined reference to typeinfo for itk::ImageFileReaderException' circle.cxx:(.text._ZN3itk15ImageFileReaderINS_5ImageIhLj3EEENS_25DefaultConvertPixelTraitsIhEEE25GenerateOutputInformationEv[_ZN3itk15ImageFileReaderINS_5ImageIhLj3EEENS_25DefaultConvertPixelTraitsIhEEE25GenerateOutputInformationEv]+0x2a7): undefined reference to itk::ImageIOFactory::CreateImageIO(char const*, itk::CommonEnums::IOFileMode)’
circle.cxx:(.text._ZN3itk15ImageFileReaderINS_5ImageIhLj3EEENS_25DefaultConvertPixelTraitsIhEEE25GenerateOutputInformationEv[_ZN3itk15ImageFileReaderINS_5ImageIhLj3EEENS_25DefaultConvertPixelTraitsIhEEE25GenerateOutputInformationEv]+0x494): undefined reference to typeinfo for itk::ImageIOBase' circle.cxx:(.text._ZN3itk15ImageFileReaderINS_5ImageIhLj3EEENS_25DefaultConvertPixelTraitsIhEEE25GenerateOutputInformationEv[_ZN3itk15ImageFileReaderINS_5ImageIhLj3EEENS_25DefaultConvertPixelTraitsIhEEE25GenerateOutputInformationEv]+0x65d): undefined reference to itk::ImageFileReaderException::~ImageFileReaderException()’
circle.cxx:(.text._ZN3itk15ImageFileReaderINS_5ImageIhLj3EEENS_25DefaultConvertPixelTraitsIhEEE25GenerateOutputInformationEv[_ZN3itk15ImageFileReaderINS_5ImageIhLj3EEENS_25DefaultConvertPixelTraitsIhEEE25GenerateOutputInformationEv]+0x667): undefined reference to typeinfo for itk::ImageFileReaderException' circle.cxx:(.text._ZN3itk15ImageFileReaderINS_5ImageIhLj3EEENS_25DefaultConvertPixelTraitsIhEEE25GenerateOutputInformationEv[_ZN3itk15ImageFileReaderINS_5ImageIhLj3EEENS_25DefaultConvertPixelTraitsIhEEE25GenerateOutputInformationEv]+0xffe): undefined reference to itk::ImageFileReaderException::~ImageFileReaderException()’
CMakeFiles/circle.dir/circle.cxx.o: In function itk::ImageFileReader<itk::Image<unsigned char, 3u>, itk::DefaultConvertPixelTraits<unsigned char> >::GenerateData()': circle.cxx:(.text._ZN3itk15ImageFileReaderINS_5ImageIhLj3EEENS_25DefaultConvertPixelTraitsIhEEE12GenerateDataEv[_ZN3itk15ImageFileReaderINS_5ImageIhLj3EEENS_25DefaultConvertPixelTraitsIhEEE12GenerateDataEv]+0x66d): undefined reference to itk::ImageIOBase::GetComponentTypeAsStringabi:cxx11
circle.cxx:(.text._ZN3itk15ImageFileReaderINS_5ImageIhLj3EEENS_25DefaultConvertPixelTraitsIhEEE12GenerateDataEv[_ZN3itk15ImageFileReaderINS_5ImageIhLj3EEENS_25DefaultConvertPixelTraitsIhEEE12GenerateDataEv]+0x6be): undefined reference to itk::ImageIOBase::GetComponentTypeAsString[abi:cxx11](itk::CommonEnums::IOComponent)' CMakeFiles/circle.dir/circle.cxx.o: In function itk::ImageFileReader<itk::Image<unsigned char, 3u>, itk::DefaultConvertPixelTraits >::TestFileExistanceAndReadability()’:
circle.cxx:(.text._ZN3itk15ImageFileReaderINS_5ImageIhLj3EEENS_25DefaultConvertPixelTraitsIhEEE31TestFileExistanceAndReadabilityEv[_ZN3itk15ImageFileReaderINS_5ImageIhLj3EEENS_25DefaultConvertPixelTraitsIhEEE31TestFileExistanceAndReadabilityEv]+0x183): undefined reference to itk::ImageFileReaderException::~ImageFileReaderException()' circle.cxx:(.text._ZN3itk15ImageFileReaderINS_5ImageIhLj3EEENS_25DefaultConvertPixelTraitsIhEEE31TestFileExistanceAndReadabilityEv[_ZN3itk15ImageFileReaderINS_5ImageIhLj3EEENS_25DefaultConvertPixelTraitsIhEEE31TestFileExistanceAndReadabilityEv]+0x18d): undefined reference to typeinfo for itk::ImageFileReaderException’
circle.cxx:(.text._ZN3itk15ImageFileReaderINS_5ImageIhLj3EEENS_25DefaultConvertPixelTraitsIhEEE31TestFileExistanceAndReadabilityEv[_ZN3itk15ImageFileReaderINS_5ImageIhLj3EEENS_25DefaultConvertPixelTraitsIhEEE31TestFileExistanceAndReadabilityEv]+0x326): undefined reference to itk::ImageFileReaderException::~ImageFileReaderException()' circle.cxx:(.text._ZN3itk15ImageFileReaderINS_5ImageIhLj3EEENS_25DefaultConvertPixelTraitsIhEEE31TestFileExistanceAndReadabilityEv[_ZN3itk15ImageFileReaderINS_5ImageIhLj3EEENS_25DefaultConvertPixelTraitsIhEEE31TestFileExistanceAndReadabilityEv]+0x330): undefined reference to typeinfo for itk::ImageFileReaderException’
circle.cxx:(.text._ZN3itk15ImageFileReaderINS_5ImageIhLj3EEENS_25DefaultConvertPixelTraitsIhEEE31TestFileExistanceAndReadabilityEv[_ZN3itk15ImageFileReaderINS_5ImageIhLj3EEENS_25DefaultConvertPixelTraitsIhEEE31TestFileExistanceAndReadabilityEv]+0x3a9): undefined reference to itk::ImageFileReaderException::~ImageFileReaderException()' circle.cxx:(.text._ZN3itk15ImageFileReaderINS_5ImageIhLj3EEENS_25DefaultConvertPixelTraitsIhEEE31TestFileExistanceAndReadabilityEv[_ZN3itk15ImageFileReaderINS_5ImageIhLj3EEENS_25DefaultConvertPixelTraitsIhEEE31TestFileExistanceAndReadabilityEv]+0x3da): undefined reference to itk::ImageFileReaderException::~ImageFileReaderException()’
CMakeFiles/circle.dir/circle.cxx.o: In function itk::ImageFileReader<itk::Image<unsigned char, 3u>, itk::DefaultConvertPixelTraits<unsigned char> >::DoConvertBuffer(void*, unsigned long)': circle.cxx:(.text._ZN3itk15ImageFileReaderINS_5ImageIhLj3EEENS_25DefaultConvertPixelTraitsIhEEE15DoConvertBufferEPvm[_ZN3itk15ImageFileReaderINS_5ImageIhLj3EEENS_25DefaultConvertPixelTraitsIhEEE15DoConvertBufferEPvm]+0xb67): undefined reference to itk::ImageIOBase::GetComponentTypeAsStringabi:cxx11
circle.cxx:(.text._ZN3itk15ImageFileReaderINS_5ImageIhLj3EEENS_25DefaultConvertPixelTraitsIhEEE15DoConvertBufferEPvm[_ZN3itk15ImageFileReaderINS_5ImageIhLj3EEENS_25DefaultConvertPixelTraitsIhEEE15DoConvertBufferEPvm]+0xbed): undefined reference to itk::ImageIOBase::GetComponentTypeAsString[abi:cxx11](itk::CommonEnums::IOComponent)' circle.cxx:(.text._ZN3itk15ImageFileReaderINS_5ImageIhLj3EEENS_25DefaultConvertPixelTraitsIhEEE15DoConvertBufferEPvm[_ZN3itk15ImageFileReaderINS_5ImageIhLj3EEENS_25DefaultConvertPixelTraitsIhEEE15DoConvertBufferEPvm]+0xc4f): undefined reference to itk::ImageIOBase::GetComponentTypeAsStringabi:cxx11
circle.cxx:(.text._ZN3itk15ImageFileReaderINS_5ImageIhLj3EEENS_25DefaultConvertPixelTraitsIhEEE15DoConvertBufferEPvm[_ZN3itk15ImageFileReaderINS_5ImageIhLj3EEENS_25DefaultConvertPixelTraitsIhEEE15DoConvertBufferEPvm]+0xcb1): undefined reference to itk::ImageIOBase::GetComponentTypeAsString[abi:cxx11](itk::CommonEnums::IOComponent)' circle.cxx:(.text._ZN3itk15ImageFileReaderINS_5ImageIhLj3EEENS_25DefaultConvertPixelTraitsIhEEE15DoConvertBufferEPvm[_ZN3itk15ImageFileReaderINS_5ImageIhLj3EEENS_25DefaultConvertPixelTraitsIhEEE15DoConvertBufferEPvm]+0xd13): undefined reference to itk::ImageIOBase::GetComponentTypeAsStringabi:cxx11
CMakeFiles/circle.dir/circle.cxx.o:circle.cxx:(.text._ZN3itk15ImageFileReaderINS_5ImageIhLj3EEENS_25DefaultConvertPixelTraitsIhEEE15DoConvertBufferEPvm[_ZN3itk15ImageFileReaderINS_5ImageIhLj3EEENS_25DefaultConvertPixelTraitsIhEEE15DoConvertBufferEPvm]+0xd75): more undefined references to itk::ImageIOBase::GetComponentTypeAsString[abi:cxx11](itk::CommonEnums::IOComponent)' follow CMakeFiles/circle.dir/circle.cxx.o: In function itk::ImageFileReader<itk::Image<unsigned char, 3u>, itk::DefaultConvertPixelTraits >::DoConvertBuffer(void*, unsigned long)’:
circle.cxx:(.text._ZN3itk15ImageFileReaderINS_5ImageIhLj3EEENS_25DefaultConvertPixelTraitsIhEEE15DoConvertBufferEPvm[_ZN3itk15ImageFileReaderINS_5ImageIhLj3EEENS_25DefaultConvertPixelTraitsIhEEE15DoConvertBufferEPvm]+0x1195): undefined reference to itk::ImageFileReaderException::~ImageFileReaderException()' circle.cxx:(.text._ZN3itk15ImageFileReaderINS_5ImageIhLj3EEENS_25DefaultConvertPixelTraitsIhEEE15DoConvertBufferEPvm[_ZN3itk15ImageFileReaderINS_5ImageIhLj3EEENS_25DefaultConvertPixelTraitsIhEEE15DoConvertBufferEPvm]+0x119f): undefined reference to typeinfo for itk::ImageFileReaderException’
circle.cxx:(.text._ZN3itk15ImageFileReaderINS_5ImageIhLj3EEENS_25DefaultConvertPixelTraitsIhEEE15DoConvertBufferEPvm[_ZN3itk15ImageFileReaderINS_5ImageIhLj3EEENS_25DefaultConvertPixelTraitsIhEEE15DoConvertBufferEPvm]+0x12e5): undefined reference to `itk::ImageFileReaderException::~ImageFileReaderException()’
collect2: error: ld returned 1 exit status
CMakeFiles/circle.dir/build.make:103: recipe for target ‘circle’ failed
make[2]: *** [circle] Error 1
CMakeFiles/Makefile2:72: recipe for target ‘CMakeFiles/circle.dir/all’ failed
make[1]: *** [CMakeFiles/circle.dir/all] Error 2
Makefile:83: recipe for target ‘all’ failed
make: *** [all] Error 2
‘’’

For configuring
cmake … -DCMAKE_TOOLCHAIN_FILE=/opt/vcpkg/scripts/buildsystems/vcpkg.cmake

For building
make

Are there triplets for vcpkg on Linux? Which one are you using? Are you using the same options for the example you are building? Maybe you are missing vcpkg integrate install or a similar call?

I see that you tried to format the code and the output. Use three backticks (```) for that. See more here.