Did you compile using spm_MAKE? Because C does not support overloading
of different datatypes, the spm_vol_utils.c routines are compiled several
tiles using different flags for the different datatypes:
$CC -c -o utils_uchar.o spm_vol_utils.c -DUNSIGNED_CHAR -O2
$CC -c -o utils_short.o spm_vol_utils.c -DSIGNED_SHORT -DNOLOOKUP -O2
$CC -c -o utils_int.o spm_vol_utils.c -DSIGNED_INT -DNOLOOKUP -O2
$CC -c -o utils_float.o spm_vol_utils.c -DFLOAT -DNOLOOKUP -O2
$CC -c -o utils_double.o spm_vol_utils.c -DDOUBLE -DNOLOOKUP -O2
Regards,
-John
| We recently had a hard disk crash and I am trying to reinstall SPM96 to
| finish some studies up. After untaring the files and compiling the c code
| for linux I run into some trouble trying to display images. This is the
| error I get after selecting the image and just after I click "display":
|
| /home3/matlab/bin/lnx86/matlab: can't resolve symbol 'slice_uchar'
| /home3/matlab/bin/lnx86/matlab: can't resolve symbol 'slice_short'
| /home3/matlab/bin/lnx86/matlab: can't resolve symbol 'slice_int'
| /home3/matlab/bin/lnx86/matlab: can't resolve symbol 'slice_float'
| /home3/matlab/bin/lnx86/matlab: can't resolve symbol 'slice_double'
| Unable to load mex file:
| Unable to resolve symbol
| ??? Invalid MEX-file
|
| Error in ==> /spm/spm_display.m
| On line 47 ==> Ds = spm_slice_vol(V,inv(D), DIM([3 2]),1);
|
| ??? Syntax error in callback string.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|