Skip navigation
NASA Logo, National Aeronautics and Space Administration
243 Views 1 Reply Latest reply: Sep 13, 2018 12:14 PM by jvgeiger RSS
Currently Being Moderated

Sep 10, 2018 12:40 PM

LIS compilation error

I ran into these error multiple times no matter what I changed.

 

I am using gcc/5.2.0 openmpi/2.1.0 netcdf/4.5.0. The configure.lis is attached.

                                                                 ^

../surfacemodels/land/vic.4.1.2.l/physics/CalcBlowingSnow.c: In function 'double trapzd(double (*)(), double, double, double, double, double, double, double, double, double, double, double, double, int)':

../surfacemodels/land/vic.4.1.2.l/physics/CalcBlowingSnow.c:411:25: error: too many arguments to function

       phi_r, ushear, Zrh) +

                         ^

../surfacemodels/land/vic.4.1.2.l/physics/CalcBlowingSnow.c:413:25: error: too many arguments to function

       phi_r, ushear, Zrh)));

                         ^

../surfacemodels/land/vic.4.1.2.l/physics/CalcBlowingSnow.c:421:39: error: too many arguments to function

           F, hsalt, phi_r, ushear, Zrh);

                                       ^

../surfacemodels/land/vic.4.1.2.l/physics/CalcBlowingSnow.c: In function 'double CalcSubFlux(double, double, double, double, double, double, double, double, double, double, double, double, double*)':

../surfacemodels/land/vic.4.1.2.l/physics/CalcBlowingSnow.c:731:36: error: invalid conversion from 'double (*)(double, double, double, double, double, double, double, double, double, double, double)' to 'double (*)()' [-fpermissive]

     phi_s, ushear, Zrh, hsalt, ztop);

                                    ^

../surfacemodels/land/vic.4.1.2.l/physics/CalcBlowingSnow.c:332:8: note:   initializing argument 1 of 'double qromb(double (*)(), double, double, double, double, double, double, double, double, double, double, double, double)'

double qromb(double (*funcd)(), double es, double Wind, double AirDens, double ZO,

        ^

../surfacemodels/land/vic.4.1.2.l/physics/CalcBlowingSnow.c:739:60: error: invalid conversion from 'double (*)(double, double, double, double, double, double, double, double, double, double, double)' to 'double (*)()' [-fpermissive]

          EactAir, F, hsalt, phi_s, ushear, Zrh, hsalt, ztop);

                                                            ^

../surfacemodels/land/vic.4.1.2.l/physics/CalcBlowingSnow.c:332:8: note:   initializing argument 1 of 'double qromb(double (*)(), double, double, double, double, double, double, double, double, double, double, double, double)'

double qromb(double (*funcd)(), double es, double Wind, double AirDens, double ZO,

        ^

gmake: *** [CalcBlowingSnow.o] Error 1

Compile failed

Attachments:

More Like This

  • Retrieving data ...

Bookmarked By (0)

USAGov logo NASA Logo - nasa.gov