[MINC-users] link problem

francois hebert francois.hebert007 at gmail.com
Thu May 20 09:57:20 EDT 2010


Thank you for the help but it seems that the problem comes from the link
against shared library.
I'm not sure but I have to dig in.

Francois

2010/5/19 Alexandre CARMEL-VEILLEUX <acveilleux at mrs.mni.mcgill.ca>

> Maybe try to link in netcdf as well.
>
> gcc -g -o Test1 -I/usr/local/bic/include -L/usr/local/bic/lib -lminc2
> -lhdf5 -lnetcdf ~/Desktop/Test.c
>
> Alex
>
>
> On Wed, May 19, 2010 at 09:49:57AM -0400, francois hebert wrote:
> > Date: Wed, 19 May 2010 09:49:57 -0400
> > From: francois hebert <francois.hebert007 at gmail.com>
> > Subject: [MINC-users] link problem
> > To: MINC users mailing list <minc-users at bic.mni.mcgill.ca>
> >
> > Hi All there,
> >
> > New in the MINC world, I'm trying to implement C stuffs into MINC. For a
> > simple test, I implemented a basic C program (Test.c  attached) and tried
> to
> > compiled it using a command line found in minc_wikibook as below:
> >
> > arsene at balvenie:~$ gcc -g -o Test1 -I/usr/local/bic/include
> > -L/usr/local/bic/lib -lminc2 -lhdf5 ~/Desktop/Test.c
> >
> >
> > And I've got the following error message:
> >
> > /tmp/ccyMXdho.o: In function `main':
> > /home/arsene/Desktop/Cluster.
> > c:20: undefined reference to `miopen_volume'
> > /home/arsene/Desktop/Cluster.c:29: undefined reference to
> > `miconvert_world_to_voxel'
> > /home/arsene/Desktop/Cluster.c:40: undefined reference to
> `miget_real_value'
> > collect2: ld returned 1 exit status
> >
> >
> > It seems like the program is compiled but links are not performed...
> > !?!?!?!?
> >
> >
> > What wrong?
> >
> >
> >
> > Thanks in advance,
> > _______________________________________________
> > MINC-users at bic.mni.mcgill.ca
> > http://www.bic.mni.mcgill.ca/mailman/listinfo/minc-users
> _______________________________________________
> 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