This is a question for anyone using SimpleITK from within a C++ program.
I have downloaded the SimpleITK code, and generated the VS2008 .sln
files using CMake as per SimpleITK instructions (Superbuild).
In the SimpleITK-build\lib\Debug
I get a few SimpleITK libs eg: SimpleITKCommon-0.8.lib
.
In SimpleITK-build\ITK-build\lib\Debug
I get many ITK libs eg: ITKCommon-4.5.lib
In the code, I use: #include "SimpleITK.h"
Question: What do I link to?
I can add to linker/input/additional dependencies
all the SimpleITK libs one by one. Then I get unresolved external symbols
, as I have not linked to the ITK libs (there are like 50 of them). I can't believe I need to add to additional dependencies 50-60 libs.
What am I missing here? can't find any documentation about linking into SimpleITK fom C++.
Thanks and cheers
Ari