[MINC-users] compiling RMS.c for mincrealign

Ji Hyum KO kojinet at bic.mni.mcgill.ca
Tue Nov 27 18:58:05 EST 2007


Hello Andrew,

Thanks for your help.
Well, it somehow changed the outcome, so I guess there was a progress, but
it gives more lines of errors.

I cannot copy and paste all of it, but the followings are a fraction of
the messages.

ursula:/usr/local/mni/data/jihyun/mincrealign/RMS/src# gcc RMS.c
-L/usr/local/mni/lib -I/usr/local/mni/include -lvolume_io -lminc -lm
/usr/local/mni/lib/libvolume_io.a(input_mnc.o)(.text+0xf): In function
`get_minc_file_n_dimensions':
volume_io/Volumes/input_mnc.c:55: undefined reference to `ncopts'
/usr/local/mni/lib/libvolume_io.a(input_mnc.o)(.text+0x50):volume_io/Volumes/input_mnc.c:72:
undefined reference to `ncvarid'
/usr/local/mni/lib/libvolume_io.a(input_mnc.o)(.text+0x86):volume_io/Volumes/input_mnc.c:74:
undefined reference to `ncvarinq'
/usr/local/mni/lib/libvolume_io.a(input_mnc.o)(.text+0x178): In function
`initialize_minc_input_from_minc_id':

Thanks,

Ji Hyun


On Wed, 28 Nov 2007, Andrew Janke wrote:

> Hi Ji,
>
> I have no idea what RMS.c or mincrealign are but it looks to me that
> you are missing the minc/volume_io libraries.
>
> This should work:
>
>    gcc RMS.c -L/usr/local/mni/lib -I/usr/local/mni/include -lvolume_io
> -lminc -lm
>
> Presuming of course that RMS.c is the main C program (has a main() in it).
>
> a
>
>
> On Nov 28, 2007 10:12 AM, Ji Hyum KO <kojinet at bic.mni.mcgill.ca> wrote:
> > Hello,
> >
> > I am trying to compile RMS.c to mincrealign with option of -target_for_RMS
> > of MRI file.
> >
> > I think I have all the necessary header files, ie., volume_io.h and etc,
> > but it gives me the following errors when I tried to compile it.
> > My gcc version is 3.3.5 (Debian).
> >
> > Could anybody help me?
> >
> > ursula:/usr/local/mni/data/jihyun/mincrealign/RMS/src# gcc RMS.c
> > -I/usr/local/mni/include/
> > /tmp/ccIcUkSO.o(.text+0x66): In function `main':
> > : undefined reference to `input_volume'
> > /tmp/ccIcUkSO.o(.text+0x8e): In function `main':
> > : undefined reference to `get_volume_sizes'
> > /tmp/ccIcUkSO.o(.text+0xa8): In function `main':
> > : undefined reference to `input_transform_file'
> > /tmp/ccIcUkSO.o(.text+0x141): In function `main':
> > : undefined reference to `get_cached_volume_voxel'
> > /tmp/ccIcUkSO.o(.text+0x376): In function `main':
> > : undefined reference to `convert_voxel_to_value'
> > /tmp/ccIcUkSO.o(.text+0x3c9): In function `main':
> > : undefined reference to `convert_3D_voxel_to_world'
> > /tmp/ccIcUkSO.o(.text+0x401): In function `main':
> > : undefined reference to `general_inverse_transform_point'
> > /tmp/ccIcUkSO.o(.text+0x419): In function `main':
> > : undefined reference to `pow'
> > /tmp/ccIcUkSO.o(.text+0x437): In function `main':
> > : undefined reference to `pow'
> > /tmp/ccIcUkSO.o(.text+0x45d): In function `main':
> > : undefined reference to `pow'
> > /tmp/ccIcUkSO.o(.text+0x4a1): In function `main':
> > : undefined reference to `sqrt'
> > collect2: ld returned 1 exit status
> >
> > Thanks,
> >
> > Ji Hyun
> >
> > _______________________________________________
> > MINC-users at bic.mni.mcgill.ca
> > http://www.bic.mni.mcgill.ca/mailman/listinfo/minc-users
> >
>
>
>
> --
> Andrew Janke   (a.janke at gmail.com || http://a.janke.googlepages.com/)
> Canberra->Australia    +61 (402) 700 883
> _______________________________________________
> MINC-users at bic.mni.mcgill.ca
> http://www.bic.mni.mcgill.ca/mailman/listinfo/minc-users
>


More information about the MINC-users mailing list