You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am very new to programming. I am trying to install AXISEM and it has a makefile that throws me the following error:
ld: library not found for -lnetcdf
collect2: error: ld returned 1 exit status
The part of code where the error is thrown is the following
ifeq ($(strip $(USE_NETCDF)),true)
FFLAGS += -Dunc
ifdef NETCDF_PATH
LIBS = -L $(strip $(NETCDF_PATH))/lib -lnetcdff -Wl,-rpath,$(strip $(NETCDF_PATH))/lib
INCLUDE = -I $(strip $(NETCDF_PATH))/include
else
LIBS = -lnetcdff
INCLUDE = -I /usr/include
endif
else
LIBS =
INCLUDE =
endif
Thanks in advance if anyone can help me.
The text was updated successfully, but these errors were encountered:
I am very new to programming. I am trying to install AXISEM and it has a makefile that throws me the following error:
ld: library not found for -lnetcdf
collect2: error: ld returned 1 exit status
The part of code where the error is thrown is the following$(strip $ (USE_NETCDF)),true)$(strip $ (NETCDF_PATH))/lib -lnetcdff -Wl,-rpath,$(strip $(NETCDF_PATH))/lib$(strip $ (NETCDF_PATH))/include
ifeq (
FFLAGS += -Dunc
ifdef NETCDF_PATH
LIBS = -L
INCLUDE = -I
else
LIBS = -lnetcdff
INCLUDE = -I /usr/include
endif
else
LIBS =
INCLUDE =
endif
Thanks in advance if anyone can help me.
The text was updated successfully, but these errors were encountered: