Bug or feature - the actual error not identified
-
I have "undefined reference " error which is posted in "issues" but the line # of error is not posted and even the source code is not flagged with error.
Makes it hard to troubleshoot.

-
Because it's a linker error and not a compiler error. When you want to use hci_open_dev then you must also link against the appropriate library which should be the
bluetoothlibrary according e.g http://docs.cubieboard.org/tutorials/common/development/bluez_programming