On Sat, 20 Sep 2014, Robert Parker wrote:

Here is my Makefile.am
AM_CFLAGS=-Wall -Wextra

bin_PROGRAMS=pwordsaver
pwordsaver_SOURCES=pwordsaver.c fileutil.c fileutil.h

AM_LDFLAGS = -lmhash

A library is not a linker flag so it does not belong in LDFLAGS. Look into using a 'LIBADD' type option instead.

This problem seems to be a 'feature' of gcc because the same error happens
when compiling by manual commands.

What must I do please?

LIBS are not flags. Take care to specify libraries where libraries are supposed to go.

Bob
--
Bob Friesenhahn
bfrie...@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/

Reply via email to