Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.
This repository was archived by the owner on Oct 12, 2022. It is now read-only.

Compilation failure with "multiple definitions error" #1

@naikymen

Description

@naikymen
gcc -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include    -g -O2   -o cell cell.o align_image.o contiguous.o date_and_time.o fft.o fft_stats.o fit.o flatten.o fl_dist.o nums.o oif.o segment.o split_and_overlap.o tif.o  -lglib-2.0  -ltiff  -lopenlibm 
/usr/bin/ld: segment.o:/home/user/Software/cellID-linux2/segment.c:93: multiple definition of `xmax'; contiguous.o:/home/user/Software/cellID-linux2/contiguous.c:81: first defined here
/usr/bin/ld: segment.o:/home/user/Software/cellID-linux2/segment.c:94: multiple definition of `xmax_ymax'; contiguous.o:/home/user/Software/cellID-linux2/contiguous.c:82: first defined here
/usr/bin/ld: segment.o:/home/user/Software/cellID-linux2/image_type.h:23: multiple definition of `recalculate_internal'; cell.o:/home/user/Software/cellID-linux2/image_type.h:23: first defined here
/usr/bin/ld: segment.o:/home/user/Software/cellID-linux2/image_type.h:21: multiple definition of `third_image_type'; cell.o:/home/user/Software/cellID-linux2/image_type.h:21: first defined here
/usr/bin/ld: segment.o:/home/user/Software/cellID-linux2/parameters.h:19: multiple definition of `nucleus_radii'; cell.o:/home/user/Software/cellID-linux2/parameters.h:19: first defined here
/usr/bin/ld: segment.o:/home/user/Software/cellID-linux2/segment.c:93: multiple definition of `ymax'; contiguous.o:/home/user/Software/cellID-linux2/contiguous.c:81: first defined here
/usr/bin/ld: segment.o:/home/user/Software/cellID-linux2/segment.c:122: multiple definition of `cut_low'; contiguous.o:/home/user/Software/cellID-linux2/contiguous.c:84: first defined here
/usr/bin/ld: segment.o:/home/user/Software/cellID-linux2/segment.c:122: multiple definition of `cut_high'; contiguous.o:/home/user/Software/cellID-linux2/contiguous.c:85: first defined here
/usr/bin/ld: segment.o:/home/user/Software/cellID-linux2/image_type.h:20: multiple definition of `image_type'; cell.o:/home/user/Software/cellID-linux2/image_type.h:20: first defined here
/usr/bin/ld: segment.o:/home/user/Software/cellID-linux2/parameters.h:21: multiple definition of `background_reject_factor'; cell.o:/home/user/Software/cellID-linux2/parameters.h:21: first defined here
/usr/bin/ld: segment.o:/home/user/Software/cellID-linux2/parameters.h:23: multiple definition of `I_over_U_for_match'; cell.o:/home/user/Software/cellID-linux2/parameters.h:23: first defined here
/usr/bin/ld: segment.o:/home/user/Software/cellID-linux2/image_type.h:22: multiple definition of `overall_id_offset'; cell.o:/home/user/Software/cellID-linux2/image_type.h:22: first defined here
/usr/bin/ld: segment.o:/home/user/Software/cellID-linux2/parameters.h:16: multiple definition of `max_d_over_s_cut'; cell.o:/home/user/Software/cellID-linux2/parameters.h:16: first defined here
/usr/bin/ld: segment.o:/home/user/Software/cellID-linux2/parameters.h:17: multiple definition of `max_pixels_per_cell'; cell.o:/home/user/Software/cellID-linux2/parameters.h:17: first defined here
/usr/bin/ld: segment.o:/home/user/Software/cellID-linux2/parameters.h:18: multiple definition of `min_pixels_per_cell'; cell.o:/home/user/Software/cellID-linux2/parameters.h:18: first defined here
/usr/bin/ld: segment.o:/home/user/Software/cellID-linux2/parameters.h:22: multiple definition of `max_split_d_over_minor'; cell.o:/home/user/Software/cellID-linux2/parameters.h:22: first defined here
collect2: error: ld returned 1 exit status
make: *** [Makefile:376: cell] Error 1
$ gcc --version
gcc (GCC) 10.2.0
Copyright (C) 2020 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions