Hi all
we would like to use the afni c interface to handle datasets as described in
README.attributes trying the following codelines
THD_3dim_dataset *dset ;
dset = THD_open_dataset( "fred+orig.HEAD" ) ;
if( dset == NULL ){ fprintf(stderr,"My bad.\n"); exit(1); }
On linking phase gcc (3.3.2) prints these linking errors
gcc opafni.c -o afni_open -Wall -O3 -I../afni_h -lXt -L/usr/X11R6/lib -lXt -L../afni_libs -lmri -lmrix -lcoxplot -lf2c -lvolpack
../afni_libs/libmri.a(mri_to_byte.o)(.text+0x441): In function `mri_to_byte':
: undefined reference to `rint'
../afni_libs/libmri.a(mri_to_byte.o)(.text+0x935): In function `mri_to_byte_scl':
: undefined reference to `rint'
../afni_libs/libmri.a(mri_to_byte.o)(.text+0x9b5): In function `mri_to_byte_scl':
: undefined reference to `rint'
../afni_libs/libmri.a(mri_to_byte.o)(.text+0xa25): In function `mri_to_byte_scl':
: undefined reference to `rint'
../afni_libs/libmri.a(mri_to_byte.o)(.text+0xa95): In function `mri_to_byte_scl':
: undefined reference to `rint'
../afni_libs/libmri.a(mri_to_short.o)(.text+0x310): more undefined references to `rint' follow
collect2: ld returned 1 exit status
make: *** [afni_open] Error 1
I took include files from source distibution and library file from binary distribution
thanks for any help
Best Regards
Marco