0

I am trying to compile a code where I use a class defined in a static library .lib. this class is using itk functions, the includes are in the .cpp.

I give to my code, the .lib and the .h of the project defining this class.

When I try to compile I get this error: enter image description here

the lib itksys-4.13.lib is well passed to the compiler. in visual studio if I look at: Project->Properties->Linker->CommandLine I can see it. (it is passed using qmake. in the .pri:

MyITK {
  CONFIG_FOUND += MyITK
  QMAKE_LIBDIR += $${PACKAGE_LIB}/MyITK
  win32:LIBS += ITKBiasCorrection-4.13.lib \
etc...)

and in the .pro:

CONFIG += MyITK

)

I don't get why I have this error if the lib is there.

p.deman
  • 584
  • 2
  • 10
  • 24

1 Answers1

0

You need to use CMake to configure your ITK-based project, not QMake.

If you really don't want to use CMake, or for some reason can't, you can create a version of your project which uses CMake and copy the libraries used and perhaps some defines from it. There are a lot libraries, and your manual specification obviously missed some of them.

Dženan
  • 3,329
  • 3
  • 31
  • 44