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

priyanka
Fri, 17 Dec 2021 07:12:31 +0000
Uncategorized

‘’’
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

‘’’

5 posts - 2 participants