Thanks everyone! I've now got it working. However, I had to make a few changes:
AM_CXXFLAGS = -D_REENTRANT -Wall AM_LDFLAGS = -lz LDADD = libdconn.a noinst_PROGRAMS = udpclient udpclient_LDADD = libdconn.a udpclient_SOURCES = examples/udpclient.cpp Somehow, if I put -lz in LDADD, it doesn't get added as a compiler option. Also, I'll confirm that the nobase_include_HEADERS are all intended to be installed, this is an OO library, and the user will need header files from each class. -Dave -- View this message in context: http://www.nabble.com/Build-a-lib%2C-then-example-programs-tf4239518.html#a12097549 Sent from the Gnu - Automake - General mailing list archive at Nabble.com.