Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue in configure file regarding the order of -lnetcdff and -lnetcdf #2

Open
zemega opened this issue Feb 5, 2021 · 0 comments
Open

Comments

@zemega
Copy link

zemega commented Feb 5, 2021

On line 349, the $NETCDFF needs to be placed before -lnetcdf
$FC ${FFLAGS} fort_netcdf.f -o fort_netcdf -L${NETCDF}/lib -lnetcdf $NETCDFF > /dev/null 2>&1
It should be
$FC ${FFLAGS} fort_netcdf.f -o fort_netcdf -L${NETCDF}/lib $NETCDFF -lnetcdf > /dev/null 2>&1
The order of -lnetcdff -lnetcdf is important, at least when compiling using gfortran.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant