baltrad / bropo

Anomaly (non-precipitation echo) detection and removal
Other
0 stars 0 forks source link

Compilation problems on gcc >= 9 #3

Closed andershenja closed 2 years ago

andershenja commented 2 years ago

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.

andershenja commented 2 years ago

Corrected in bropo-build-22