[PATCH] `man 3 pow' advice is "Link with -lm".

Cristian Ionescu-Idbohrn cristian.ionescu-idbohrn at axis.com
Sun Jan 15 15:40:50 PST 2012


Solves suddenly revealed linking error:
divelist.c:400: error: undefined reference to 'pow'

Signed-off-by: Cristian Ionescu-Idbohrn <cii at axis.com>
---
 Makefile |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/Makefile b/Makefile
index 7c88564..8a5096a 100644
--- a/Makefile
+++ b/Makefile
@@ -111,7 +111,7 @@ ifneq ($(strip $(LIBXSLT)),)
 	endif
 endif

-LIBS = $(LIBXML2) $(LIBXSLT) $(LIBGTK) $(LIBGCONF2) $(LIBDIVECOMPUTER) $(EXTRALIBS) -lpthread
+LIBS = $(LIBXML2) $(LIBXSLT) $(LIBGTK) $(LIBGCONF2) $(LIBDIVECOMPUTER) $(EXTRALIBS) -lpthread -lm

 OBJS =	main.o dive.o profile.o info.o equipment.o divelist.o \
 	parse-xml.o save-xml.o libdivecomputer.o print.o uemis.o \
-- 
1.7.8.3


More information about the subsurface mailing list