How Do You Get around the Error ‘no program or library has “hello” as canonical name’?

Problem scenario
You are running "autoreconf --install" but you get this type of error:

" warning: variable 'hello_SOURCES' is defined but no program or library has 'hello' as canonical name (possible typo)
autoreconf: automake failed with exit status: 1"

How do you modify to not have this error when running "autoreconf --install"?

In the file, remove the "hello_" from the stanza "hello_SOURCES".  

For example, use this stanza (with no "hello"):

SOURCES = main.c

Some examples online have different naming conventions for this stanza.  It can be called just "SOURCES".

Leave a comment

Your email address will not be published. Required fields are marked *