I am trying to compile the ‘DArray_heapsort’ and ‘DArray_mergesort’ functions.
But I am unable to link these on Ubuntu 18.04.01 LTS.
I tried couple of things like
- Installing the libs with- sudo apt-get install libbsd-dev
This gets the heapsort and mansort pages
- I tried to link these in LDLIBS as follows
CFLAGS=-g -O2 -Wall -Wextra -Isrc $(shell pkg-config --cflags libbsd)
COMMON_LIBS =$(shell pkg-config --libs libbsd) -ldl $(OPTLIBS)
LDLIBS =$(COMMON_LIBS )
LDLIBS+= -ldl -lbsd -llcthw -L./build -lm
These are not able, to have the libs located. Would anyone be able to guide me to get this ball rolling?