Multiple variants of multiple definitions occurs when building on gcc >= 9 like this occurs:
/usr/bin/ld: fmi_image_filter_speck.o:/projects/baltrad/bropo/ropo/fmi_image_histogram.h:94: multiple definition of `histogram_scaling_function'; fmi_image_filter_morpho.o:/projects/baltrad/bropo/ropo/fmi_image_histogram.h:94: first defined here
/
The reason is that several attributes are defined in header attributes instead of using extern-declaration and defining them in a c-file.
Multiple variants of multiple definitions occurs when building on gcc >= 9 like this occurs: /usr/bin/ld: fmi_image_filter_speck.o:/projects/baltrad/bropo/ropo/fmi_image_histogram.h:94: multiple definition of `histogram_scaling_function'; fmi_image_filter_morpho.o:/projects/baltrad/bropo/ropo/fmi_image_histogram.h:94: first defined here /
The reason is that several attributes are defined in header attributes instead of using extern-declaration and defining them in a c-file.