[MINC-users] compiling RMS.c for mincrealign

Andrew Janke a.janke at gmail.com
Tue Nov 27 18:33:37 EST 2007


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


More information about the MINC-users mailing list