Building CS 6.0.1 on Mac OSX
Posted: Wed May 27, 2020 1:09 pm
I have been trying to build 6.0.1 on OSX using Homebrew with both clang and gcc as well as gfortran.
during the build I get the following error:
cs_atmo.c:786:1: error: conflicting types for 'cs_atmo_chemistry_log_setup'
cs_atmo_chemistry_log_setup(void)
^
./cs_atmo.h:273:1: note: previous declaration is here
cs_atmo_chemistry_log_setup(void);
^
1 error generated.
Looking at the code cs_atmo.h contains
where as cs_atmo.c contains
adding void to line 768 of cs_atmo.c fixes the issue.
during the build I get the following error:
cs_atmo.c:786:1: error: conflicting types for 'cs_atmo_chemistry_log_setup'
cs_atmo_chemistry_log_setup(void)
^
./cs_atmo.h:273:1: note: previous declaration is here
cs_atmo_chemistry_log_setup(void);
^
1 error generated.
Looking at the code cs_atmo.h contains
Code: Select all
void cs_atmo_chemistry_log_setup(void);
Code: Select all
cs_atmo_chemistry_log_setup(void)
{