AFNI Message Board

Dear AFNI users-

We are very pleased to announce that the new AFNI Message Board framework is up! Please join us at:

https://discuss.afni.nimh.nih.gov

Existing user accounts have been migrated, so returning users can login by requesting a password reset. New users can create accounts, as well, through a standard account creation process. Please note that these setup emails might initially go to spam folders (esp. for NIH users!), so please check those locations in the beginning.

The current Message Board discussion threads have been migrated to the new framework. The current Message Board will remain visible, but read-only, for a little while.

Sincerely, AFNI HQ

History of AFNI updates  

|
November 05, 2004 06:01AM
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
Subject Author Posted

THD_open_dataset

Marco November 05, 2004 06:01AM

Re: THD_open_dataset

Robert Cox November 05, 2004 08:39AM