added branch for so showing undefined reference errors
added -a option