Thank you for responses. I appreciated.
I guess my problems are deeper. And it comes from compiling SimpleITK.
Lets make step by step.
I compiled my test project. Code:
// sitk_example.cpp : This file contains the 'main' function. Program execution begins and ends there.
//
#include "pch.h"
#include <iostream>
#include <SimpleITK.h>
#include <sitkImageOperators.h>
// create convenient namespace alias
namespace sitk = itk::simple;
int main(int argc, char* argv[])
{
sitk::PixelIDValueEnum pixelType = sitk::sitkUInt8;
std::vector<unsigned int> imageSize(2, 128);
// Create a black image
sitk::Image image(imageSize, pixelType);
// Add a Gaussian blob to the image
std::vector<double> blobSize(2, 64.0);
std::vector<double> blobCenter(2, 64.0);
image = image + sitk::GaussianSource(pixelType, imageSize, blobSize, blobCenter);
// Write the image as a PNG file
sitk::WriteImage(image, "blob.png");
}
Nothing complicated. I generated the solution with CMake. And when I compiled, I got:
1>------ Build started: Project: sitk_example, Configuration: Debug x64 ------
1>sitk_example.cpp
1>sitk_example.obj : error LNK2019: unresolved external symbol "public: virtual __cdecl itk::simple::Image::~Image(void)" (??1Image@simple@itk@@UEAA@XZ) referenced in function main
1>sitk_example.obj : error LNK2019: unresolved external symbol "public: class itk::simple::Image & __cdecl itk::simple::Image::operator=(class itk::simple::Image const &)" (??4Image@simple@itk@@QEAAAEAV012@AEBV012@@Z) referenced in function main
1>sitk_example.obj : error LNK2019: unresolved external symbol "public: __cdecl itk::simple::Image::Image(class std::vector<unsigned int,class std::allocator<unsigned int> > const &,enum itk::simple::PixelIDValueEnum,unsigned int)" (??0Image@simple@itk@@QEAA@AEBV?$vector@IV?$allocator@I@std@@@std@@W4PixelIDValueEnum@12@I@Z) referenced in function main
1>sitk_example.obj : error LNK2019: unresolved external symbol "void __cdecl itk::simple::WriteImage(class itk::simple::Image const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,bool,int)" (?WriteImage@simple@itk@@YAXAEBVImage@12@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@_NH@Z) referenced in function main
1>sitk_example.obj : error LNK2019: unresolved external symbol "class itk::simple::Image __cdecl itk::simple::Add(class itk::simple::Image const &,class itk::simple::Image const &)" (?Add@simple@itk@@YA?AVImage@12@AEBV312@0@Z) referenced in function "class itk::simple::Image __cdecl itk::simple::operator+(class itk::simple::Image const &,class itk::simple::Image const &)" (??Hsimple@itk@@YA?AVImage@01@AEBV201@0@Z)
1>sitk_example.obj : error LNK2019: unresolved external symbol "class itk::simple::Image __cdecl itk::simple::GaussianSource(enum itk::simple::PixelIDValueEnum,class std::vector<unsigned int,class std::allocator<unsigned int> > const &,class std::vector<double,class std::allocator<double> > const &,class std::vector<double,class std::allocator<double> > const &,double,class std::vector<double,class std::allocator<double> > const &,class std::vector<double,class std::allocator<double> > const &,class std::vector<double,class std::allocator<double> >,bool)" (?GaussianSource@simple@itk@@YA?AVImage@12@W4PixelIDValueEnum@12@AEBV?$vector@IV?$allocator@I@std@@@std@@AEBV?$vector@NV?$allocator@N@std@@@6@2N22V76@_N@Z) referenced in function main
1>D:\Project\SimpleITK-build\SimpleITK-build\lib\Debug\SimpleITKCommon-2.0.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
1>D:\Project\SimpleITK-build\SimpleITK-build\lib\Debug\SimpleITKIO-2.0.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
1>D:\Project\SimpleITK-build\SimpleITK-build\lib\Debug\SimpleITKRegistration-2.0.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
1>D:\Project\SimpleITK-build\SimpleITK-build\lib\Debug\SimpleITKBasicFilters0-2.0.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
1>D:\Project\SimpleITK-build\SimpleITK-build\lib\Debug\SimpleITK_ITKAnisotropicSmoothing-2.0.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
1>D:\Project\SimpleITK-build\SimpleITK-build\lib\Debug\SimpleITK_ITKAntiAlias-2.0.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
1>D:\Project\SimpleITK-build\SimpleITK-build\lib\Debug\SimpleITK_ITKBiasCorrection-2.0.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
1>D:\Project\SimpleITK-build\SimpleITK-build\lib\Debug\SimpleITK_ITKBinaryMathematicalMorphology-2.0.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
1>D:\Project\SimpleITK-build\SimpleITK-build\lib\Debug\SimpleITK_ITKClassifiers-2.0.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
1>D:\Project\SimpleITK-build\SimpleITK-build\lib\Debug\SimpleITK_ITKColormap-2.0.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
1>D:\Project\SimpleITK-build\SimpleITK-build\lib\Debug\SimpleITK_ITKCommon-2.0.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
1>D:\Project\SimpleITK-build\SimpleITK-build\lib\Debug\SimpleITK_ITKConnectedComponents-2.0.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
1>D:\Project\SimpleITK-build\SimpleITK-build\lib\Debug\SimpleITK_ITKConvolution-2.0.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
1>D:\Project\SimpleITK-build\SimpleITK-build\lib\Debug\SimpleITK_ITKCurvatureFlow-2.0.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
1>D:\Project\SimpleITK-build\SimpleITK-build\lib\Debug\SimpleITK_ITKDeconvolution-2.0.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
1>D:\Project\SimpleITK-build\SimpleITK-build\lib\Debug\SimpleITK_ITKDenoising-2.0.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
1>D:\Project\SimpleITK-build\SimpleITK-build\lib\Debug\SimpleITK_ITKDisplacementField-2.0.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
1>D:\Project\SimpleITK-build\SimpleITK-build\lib\Debug\SimpleITK_ITKDistanceMap-2.0.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
1>D:\Project\SimpleITK-build\SimpleITK-build\lib\Debug\SimpleITK_ITKFFT-2.0.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
1>D:\Project\SimpleITK-build\SimpleITK-build\lib\Debug\SimpleITK_ITKFastMarching-2.0.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
1>D:\Project\SimpleITK-build\SimpleITK-build\lib\Debug\SimpleITK_ITKImageCompare-2.0.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
1>D:\Project\SimpleITK-build\SimpleITK-build\lib\Debug\SimpleITK_ITKImageCompose-2.0.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
1>D:\Project\SimpleITK-build\SimpleITK-build\lib\Debug\SimpleITK_ITKImageFeature-2.0.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
1>D:\Project\SimpleITK-build\SimpleITK-build\lib\Debug\SimpleITK_ITKImageFilterBase-2.0.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
1>D:\Project\SimpleITK-build\SimpleITK-build\lib\Debug\SimpleITK_ITKImageFunction-2.0.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
1>D:\Project\SimpleITK-build\SimpleITK-build\lib\Debug\SimpleITK_ITKImageFusion-2.0.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
1>D:\Project\SimpleITK-build\SimpleITK-build\lib\Debug\SimpleITK_ITKImageGradient-2.0.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
1>D:\Project\SimpleITK-build\SimpleITK-build\lib\Debug\SimpleITK_ITKImageGrid-2.0.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
1>D:\Project\SimpleITK-build\SimpleITK-build\lib\Debug\SimpleITK_ITKImageIntensity-2.0.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
1>D:\Project\SimpleITK-build\SimpleITK-build\lib\Debug\SimpleITK_ITKImageLabel-2.0.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
1>D:\Project\SimpleITK-build\SimpleITK-build\lib\Debug\SimpleITK_ITKImageNoise-2.0.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
1>D:\Project\SimpleITK-build\SimpleITK-build\lib\Debug\SimpleITK_ITKImageSources-2.0.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
1>D:\Project\SimpleITK-build\SimpleITK-build\lib\Debug\SimpleITK_ITKImageStatistics-2.0.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
1>D:\Project\SimpleITK-build\SimpleITK-build\lib\Debug\SimpleITK_ITKLabelMap-2.0.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
1>D:\Project\SimpleITK-build\SimpleITK-build\lib\Debug\SimpleITK_ITKLabelVoting-2.0.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
1>D:\Project\SimpleITK-build\SimpleITK-build\lib\Debug\SimpleITK_ITKLevelSets-2.0.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
1>D:\Project\SimpleITK-build\SimpleITK-build\lib\Debug\SimpleITK_ITKMathematicalMorphology-2.0.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
1>D:\Project\SimpleITK-build\SimpleITK-build\lib\Debug\SimpleITK_ITKPDEDeformableRegistration-2.0.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
1>D:\Project\SimpleITK-build\SimpleITK-build\lib\Debug\SimpleITK_ITKRegionGrowing-2.0.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
1>D:\Project\SimpleITK-build\SimpleITK-build\lib\Debug\SimpleITK_ITKRegistrationCommon-2.0.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
1>D:\Project\SimpleITK-build\SimpleITK-build\lib\Debug\SimpleITK_ITKReview-2.0.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
1>D:\Project\SimpleITK-build\SimpleITK-build\lib\Debug\SimpleITK_ITKSmoothing-2.0.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
1>D:\Project\SimpleITK-build\SimpleITK-build\lib\Debug\SimpleITK_ITKSuperPixel-2.0.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
1>D:\Project\SimpleITK-build\SimpleITK-build\lib\Debug\SimpleITK_ITKThresholding-2.0.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
1>D:\Project\SimpleITK-build\SimpleITK-build\lib\Debug\SimpleITK_ITKTransform-2.0.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
1>D:\Project\SimpleITK-build\SimpleITK-build\lib\Debug\SimpleITK_ITKWatersheds-2.0.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
1>D:\Project\SimpleITK-build\SimpleITK-build\lib\Debug\SimpleITK_SimpleITKFilters-2.0.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
1>D:\Project\SimpleITK-build\SimpleITK-build\lib\Debug\SimpleITKBasicFilters1-2.0.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
1>D:\Project\SimpleITK-build\ITK-build\lib\Debug\ITKIOBruker-5.1.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
1>D:\Project\SimpleITK-build\ITK-build\lib\Debug\ITKIOHDF5-5.1.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
1>D:\Project\SimpleITK-build\ITK-build\lib\Debug\ITKIOJPEG2000-5.1.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
1>D:\Project\SimpleITK-build\ITK-build\lib\Debug\ITKIOLSM-5.1.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
1>D:\Project\SimpleITK-build\ITK-build\lib\Debug\ITKIOMINC-5.1.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
1>D:\Project\SimpleITK-build\ITK-build\lib\Debug\itkminc2-5.1.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
1>D:\Project\SimpleITK-build\ITK-build\lib\Debug\ITKIOMRC-5.1.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
1>D:\Project\SimpleITK-build\ITK-build\lib\Debug\ITKOptimizersv4-5.1.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
1>D:\Project\SimpleITK-build\ITK-build\lib\Debug\itklbfgs-5.1.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
1>D:\Project\SimpleITK-build\ITK-build\lib\Debug\ITKColormap-5.1.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
1>D:\Project\SimpleITK-build\ITK-build\lib\Debug\ITKConvolution-5.1.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
1>D:\Project\SimpleITK-build\ITK-build\lib\Debug\ITKDenoising-5.1.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
1>D:\Project\SimpleITK-build\ITK-build\lib\Debug\ITKReview-5.1.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
1>D:\Project\SimpleITK-build\ITK-build\lib\Debug\ITKIOGDCM-5.1.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
1>D:\Project\SimpleITK-build\ITK-build\lib\Debug\itkgdcmMSFF-5.1.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
1>D:\Project\SimpleITK-build\ITK-build\lib\Debug\itkgdcmDICT-5.1.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
1>D:\Project\SimpleITK-build\ITK-build\lib\Debug\itkgdcmIOD-5.1.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
1>D:\Project\SimpleITK-build\ITK-build\lib\Debug\itkgdcmDSED-5.1.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
1>D:\Project\SimpleITK-build\ITK-build\lib\Debug\itkgdcmCommon-5.1.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
1>D:\Project\SimpleITK-build\ITK-build\lib\Debug\itkgdcmjpeg8-5.1.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
1>D:\Project\SimpleITK-build\ITK-build\lib\Debug\itkgdcmjpeg12-5.1.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
1>D:\Project\SimpleITK-build\ITK-build\lib\Debug\itkgdcmjpeg16-5.1.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
1>D:\Project\SimpleITK-build\ITK-build\lib\Debug\itkgdcmopenjp2-5.1.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
1>D:\Project\SimpleITK-build\ITK-build\lib\Debug\itkgdcmcharls-5.1.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
1>D:\Project\SimpleITK-build\ITK-build\lib\Debug\ITKIOBMP-5.1.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
1>D:\Project\SimpleITK-build\ITK-build\lib\Debug\ITKIOBioRad-5.1.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
1>D:\Project\SimpleITK-build\ITK-build\lib\Debug\ITKIOGE-5.1.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
1>D:\Project\SimpleITK-build\ITK-build\lib\Debug\ITKIOGIPL-5.1.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
1>D:\Project\SimpleITK-build\ITK-build\lib\Debug\ITKIOJPEG-5.1.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
1>D:\Project\SimpleITK-build\ITK-build\lib\Debug\ITKIOTIFF-5.1.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
1>D:\Project\SimpleITK-build\ITK-build\lib\Debug\itktiff-5.1.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
1>D:\Project\SimpleITK-build\ITK-build\lib\Debug\itkjpeg-5.1.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
1>D:\Project\SimpleITK-build\ITK-build\lib\Debug\ITKIOMeta-5.1.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
1>D:\Project\SimpleITK-build\ITK-build\lib\Debug\ITKIONIFTI-5.1.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
1>D:\Project\SimpleITK-build\ITK-build\lib\Debug\ITKniftiio-5.1.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
1>D:\Project\SimpleITK-build\ITK-build\lib\Debug\ITKznz-5.1.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
1>D:\Project\SimpleITK-build\ITK-build\lib\Debug\ITKIONRRD-5.1.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
1>D:\Project\SimpleITK-build\ITK-build\lib\Debug\ITKNrrdIO-5.1.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
1>D:\Project\SimpleITK-build\ITK-build\lib\Debug\ITKIOPNG-5.1.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
1>D:\Project\SimpleITK-build\ITK-build\lib\Debug\itkpng-5.1.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
1>D:\Project\SimpleITK-build\ITK-build\lib\Debug\ITKIOStimulate-5.1.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
1>D:\Project\SimpleITK-build\ITK-build\lib\Debug\ITKIOVTK-5.1.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
1>D:\Project\SimpleITK-build\ITK-build\lib\Debug\ITKIOTransformHDF5-5.1.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
1>D:\Project\SimpleITK-build\ITK-build\lib\Debug\libitkhdf5_cpp_D.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
1>D:\Project\SimpleITK-build\ITK-build\lib\Debug\libitkhdf5_D.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
1>D:\Project\SimpleITK-build\ITK-build\lib\Debug\ITKIOTransformInsightLegacy-5.1.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
1>D:\Project\SimpleITK-build\ITK-build\lib\Debug\ITKIOTransformMatlab-5.1.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
1>D:\Project\SimpleITK-build\ITK-build\lib\Debug\ITKOptimizers-5.1.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
1>D:\Project\SimpleITK-build\ITK-build\lib\Debug\ITKQuadEdgeMesh-5.1.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
1>D:\Project\SimpleITK-build\ITK-build\lib\Debug\ITKBiasCorrection-5.1.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
1>D:\Project\SimpleITK-build\ITK-build\lib\Debug\ITKPolynomials-5.1.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
1>D:\Project\SimpleITK-build\ITK-build\lib\Debug\ITKDiffusionTensorImage-5.1.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
1>D:\Project\SimpleITK-build\ITK-build\lib\Debug\ITKIOSiemens-5.1.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
1>D:\Project\SimpleITK-build\ITK-build\lib\Debug\ITKIOIPL-5.1.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
1>D:\Project\SimpleITK-build\ITK-build\lib\Debug\ITKIOSpatialObjects-5.1.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
1>D:\Project\SimpleITK-build\ITK-build\lib\Debug\ITKIOXML-5.1.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
1>D:\Project\SimpleITK-build\ITK-build\lib\Debug\ITKIOImageBase-5.1.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
1>D:\Project\SimpleITK-build\ITK-build\lib\Debug\ITKEXPAT-5.1.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
1>D:\Project\SimpleITK-build\ITK-build\lib\Debug\ITKKLMRegionGrowing-5.1.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
1>D:\Project\SimpleITK-build\ITK-build\lib\Debug\ITKMarkovRandomFieldsClassifiers-5.1.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
1>D:\Project\SimpleITK-build\ITK-build\lib\Debug\itkopenjpeg-5.1.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
1>D:\Project\SimpleITK-build\ITK-build\lib\Debug\ITKVTK-5.1.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
1>D:\Project\SimpleITK-build\ITK-build\lib\Debug\ITKWatersheds-5.1.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
1>D:\Project\SimpleITK-build\ITK-build\lib\Debug\ITKIOTransformBase-5.1.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
1>D:\Project\SimpleITK-build\ITK-build\lib\Debug\ITKTransformFactory-5.1.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
1>D:\Project\SimpleITK-build\ITK-build\lib\Debug\ITKSmoothing-5.1.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
1>D:\Project\SimpleITK-build\ITK-build\lib\Debug\ITKMetaIO-5.1.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
1>D:\Project\SimpleITK-build\ITK-build\lib\Debug\itkzlib-5.1.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
1>D:\Project\SimpleITK-build\ITK-build\lib\Debug\ITKLabelMap-5.1.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
1>D:\Project\SimpleITK-build\ITK-build\lib\Debug\ITKStatistics-5.1.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
1>D:\Project\SimpleITK-build\ITK-build\lib\Debug\itkNetlibSlatec-5.1.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
1>D:\Project\SimpleITK-build\ITK-build\lib\Debug\ITKSpatialObjects-5.1.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
1>D:\Project\SimpleITK-build\ITK-build\lib\Debug\ITKMesh-5.1.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
1>D:\Project\SimpleITK-build\ITK-build\lib\Debug\ITKTransform-5.1.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
1>D:\Project\SimpleITK-build\ITK-build\lib\Debug\ITKPath-5.1.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
1>D:\Project\SimpleITK-build\ITK-build\lib\Debug\ITKCommon-5.1.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
1>D:\Project\SimpleITK-build\ITK-build\lib\Debug\itksys-5.1.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
1>D:\Project\SimpleITK-build\ITK-build\lib\Debug\itkdouble-conversion-5.1.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
1>D:\Project\SimpleITK-build\ITK-build\lib\Debug\ITKVNLInstantiation-5.1.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
1>D:\Project\SimpleITK-build\ITK-build\lib\Debug\itkvnl_algo-5.1.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
1>D:\Project\SimpleITK-build\ITK-build\lib\Debug\itkvnl-5.1.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
1>D:\Project\SimpleITK-build\ITK-build\lib\Debug\itkv3p_netlib-5.1.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
1>D:\Project\SimpleITK-build\ITK-build\lib\Debug\itknetlib-5.1.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
1>D:\Project\SimpleITK-build\ITK-build\lib\Debug\itkvcl-5.1.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
1>D:\Project\sitk_example\Debug\sitk_example.exe : fatal error LNK1120: 6 unresolved externals
1>Done building project "sitk_example.vcxproj" -- FAILED.
2>------ Skipped Build: Project: ALL_BUILD, Configuration: Debug x64 ------
2>Project not selected to build for this solution configuration
========== Build: 0 succeeded, 1 failed, 1 up-to-date, 1 skipped ==========
Obviously, something is not ok with my SimpleITK project. I have compiled SimpleITK with git cmd line. I cannot compiled with CMake GUI (like I did with VTK, where I had setup my fine settings, what I want, and what I don’t). Here, with command line compiling, I cannot setup anything. So, is compiled with Python and don’t need Python, I compiled with C# and don’t want C#, and so on.
How can I compile a simple project that using this excellent library, SimpleITK ?