I'm new to Linux OS. And I'm trying to run the code which download from http://cbio.mskcc.org/leslielab/software/string_kernels.html And I compile the ./src file which is in the ./profkernel using a makefile. However, when I run make , I get the following error: screenshot
And the makefile looks like this
# MITRA MakeFile
ifeq ($(MODE),debug)
#Debug flags
COMPFLAGS = -c -g -pg -Wall
CC = cc
CLIBS = -lm -g -pg
else
ifeq ($(MODE),memwatch)
#Memwatch flags
COMPFLAGS = -DMEMWATCH -DMW_STDIO -c -g -Wall -pg
CC = cc
CLIBS = -DMEMWATCH -DMW_STDIO -lm -g -Wall -pg
else
#Efficient Flags
COMPFLAGS = -c -O3
CC = cc
CLIBS = -lm -O3
endif
endif
INCLUDES = HashTable.h mitra.h MiscUtil.h SymbolTable.h SymbolTable.h Globals.h Input.h
string-kernel : string-kernel.o HashTable.o MiscUtil.o SymbolTable.o Globals.o Input.o memwatch.o
${CC} ${CLIBS} -o string-kernel string-kernel.o HashTable.o MiscUtil.o SymbolTable.o Globals.o Input.o memwatch.o
%.o : %.c
${CC} ${COMPFLAGS} $< -o $@
TAGS :
etags *.c *.h
clean :
rm string-kernel *.o
I notice there are similar questions. And I have tried to add same words from those answers like
LDFLAGS=-lm or LDLIBS=-lm
but it didn't work. Does anybody know? Thanks very much