[MINC-users] build almost everything minc Makefile and git repository for EZminc

Andrew Janke a.janke at gmail.com
Mon Apr 4 21:51:17 EDT 2011


> <chomp correct things>

On Tue, Apr 5, 2011 at 11:44, Mishkin Derakhshan <mishkind at gmail.com> wrote:
> Unfortunately, I still get an error and there is no executable
> slice_window/crop.o: In function `crop_and_load_volume':
> /home/mishkin/src/Display-1.5.0/slice_window/crop.c:165: warning: the
> use of `tmpnam' is dangerous, better use `mkstemp'
> /usr/local/bic/lib/libbicpl.a(rgb_io.o): In function `output_rgb_file':
> /home/mishkin/src/bicpl-1.4.6/Images/rgb_io_ppm.c:95: undefined
> reference to `ppm_writeppminit'
> /home/mishkin/src/bicpl-1.4.6/Images/rgb_io_ppm.c:98: undefined
> reference to `ppm_allocrow'
> /home/mishkin/src/bicpl-1.4.6/Images/rgb_io_ppm.c:116: undefined
> reference to `ppm_writeppmrow'
> /usr/local/bic/lib/libbicpl.a(rgb_io.o): In function `input_rgb_file':
> /home/mishkin/src/bicpl-1.4.6/Images/rgb_io_ppm.c:29: undefined
> reference to `ppm_readppminit'
> /home/mishkin/src/bicpl-1.4.6/Images/rgb_io_ppm.c:31: undefined
> reference to `ppm_allocrow'
> /home/mishkin/src/bicpl-1.4.6/Images/rgb_io_ppm.c:44: undefined
> reference to `ppm_readppmrow'
> collect2: ld returned 1 exit status
>
> Maybe you will have better luck, or maybe the people much smarter than
> me will be able to help you.

add -lppm to the link line (after -lm is a good spot).

This is a libtool issue, when you link with -lbicpl it should then
also include -lppm but it doesn't for some reason in all cases.


a


More information about the MINC-users mailing list