On Thursday 02 April 2009 5:56:52 pm Peter Johansson wrote: > Hello Gerald, > > Gerald I. Evenden wrote: > > After trying so many options related to libraries I am exhausted. > > > > I have a simple program that needs to link with a shared library > > installed in /usr/local/lib. > > > > When using my own simple Makefile and simply adding "-lproject -lm" > > everything works fine (libproject is the shared library). > > LDADD = "-lm -lproject" > > in your `Makefile.am' should do it. > > Cheers, > Peter
Of the suggestions offered, this one worked in the following literal entry into src/Makefile.am: geodesic_LDADD = -lproject -lm Ordering may not make any difference but I am too tired of the problem to check. :-( Many thanks. PS: I always seem to have trouble with the *_CHECK_* and *_SEARCH_* of configure.ac. Again, many thanks. -- The whole religious complexion of the modern world is due to the absence from Jerusalem of a lunatic asylum. -- Havelock Ellis (1859-1939) British psychologist