Hi again,
still struggling with this nifti library.
When I run the following code on Visual Studio 10 , I get this error:
1>nii_2.obj : error LNK2019: unresolved external symbol _nifti_image_read referenced in function _wmain
1>C:\Users\SaMaN\Documents\Visual Studio 2010\Projects\nii_2\Debug\nii_2.exe : fatal error LNK1120: 1 unresolved externals
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
#include "stdafx.h"
#include <iostream>
#include <stdio.h>
#include "nifti1_io.h"
int _tmain(int argc, _TCHAR* argv[])
{
nifti_image * nim=NULL;
char * fin=NULL, * fout=NULL;
//int ac;
fin = "C:\\Users\\SaMaN\\Documents\\AD_DATA\\ICA_denoised_data\\Filtered_Masked_AD_4564.nii";
std::cout<<fin<<std::endl;
nim = nifti_image_read(fin, 1);
return 0;
}
I have included the following paths to my project on VS, I believe something wrong with the linkers. I'm wondering which subfolders I have to include after "make" has done ?
C:\Users\SaMaN\Documents\N\nifticlib-2.0.0\nifticlib-2.0.0\znzlib
C:\Users\SaMaN\Documents\N\nifticlib-2.0.0\nifticlib-2.0.0\niftilib
I have added them into both C/C++ and Linker
Your prompt help is really appreciate it.
Thanks very much
|