not quite sure whether its bug!
i have two versions in my machine,GUN gfortran 4.1 and gfortan4.4
i switch these two versions throuth hard link like ln gcc44 gcc
it works through at version4.1 but fails at version4.4
but when i change the cpp44 to cpp4.1,everything is OK!
when cpp4.4 is working, errors coming
Compilers/make_macros.h:25: error: expected ?.?. ?.?. ?.?. ?.sm?.or ?._attribute__?.before ?.?.token
SOS
ROMS installation BUG?!
-
- Posts: 9
- Joined: Thu Jan 14, 2010 6:21 pm
- Location: Shanghai Ocean University,China
-
- Posts: 9
- Joined: Thu Jan 14, 2010 6:21 pm
- Location: Shanghai Ocean University,China
Re: ROMS installation BUG?!
in fact cpp compilers is alao link to gcc4.4.
is that means that make_marco.h can not be compiled by GUN fortran4.4??
is that means that make_marco.h can not be compiled by GUN fortran4.4??
-
- Posts: 9
- Joined: Thu Jan 14, 2010 6:21 pm
- Location: Shanghai Ocean University,China
Re: ROMS installation BUG?!
I always try to find where the error happened.
I found that all errors in the make_macrso.mk
#ifdef ADJOINT
USE_ADJOINT := on
#else
USE_ADJOINT := ################################ERROR!!!
#endif
and in cppdefs.h
#if defined ROMS_HEADER
#include ROMS_HEADER
#else
CPPDEFS - Choose an appropriate ROMS application.####################ERROR!!
#endif
it seems that the cpp44 compiler DOES NOT recognize this parameters!!!!
I found that all errors in the make_macrso.mk
#ifdef ADJOINT
USE_ADJOINT := on
#else
USE_ADJOINT := ################################ERROR!!!
#endif
and in cppdefs.h
#if defined ROMS_HEADER
#include ROMS_HEADER
#else
CPPDEFS - Choose an appropriate ROMS application.####################ERROR!!
#endif
it seems that the cpp44 compiler DOES NOT recognize this parameters!!!!
Re: ROMS installation BUG?!
The error from cppdefs.h means that you have not completely set things up correctly. I'm surprised you'd get anything good from any version of any compiler with it. The error says to choose a ROMS application - you need to do so.