bbrashers / WPS-ghrsst-to-intermediate

Converts JPL PODAAC GHRSST netCDF files to WPS Intermediate version 5 files
GNU General Public License v3.0
12 stars 14 forks source link

error compile with gfortran #1

Open fipoucat opened 4 years ago

fipoucat commented 4 years ago

I am trying to compile WPS-ghrsst-to-intermediate using gfortran as compiler but it always end up with an error undefined reference to "iargc".

Hope someone can help solving this.

bbrashers commented 4 years ago

https://gcc.gnu.org/onlinedocs/gcc-4.2.4/gfortran/IARGC.html says you can try COMMAND_ARGUMENT_COUNT instead, because gfortran has implemented the Fortran 2003 standard. I'm not sure if pgfortran, which I use, has implemented that or not. https://www.pgroup.com/resources/docs/19.10/x86/fortran-ref-guide/index.htm#fort-intrin-func-tbl-2003-2008 says it has. Feel free to test and commit a change that updates and fixes this.

fipoucat commented 4 years ago

Thank you, seen now. I should uncomment the correct arg.