title: Linux Bluetooth API Function Locations
body: <p>I have Bluez installed and the daemon is up. I am trying to write a very simple program to make sure everything is working. I am referring to the documentation at <a href="https://git.kernel.org/pub/scm/bluetooth/bluez.git/tree/doc/" rel="nofollow noreferrer">index : bluez.git</a>.</p>
  
  <p>My program is simple:</p>
  
  <pre><code>#include &lt;bluetooth/bluetooth.h&gt;
  #include &lt;bluetooth/hci.h&gt;
  #include &lt;bluetooth/hci_lib.h&gt;
  
  using namespace std;
  
  int main(int argc, char* argv[])
  {
      StartDiscovery();
  }
  </code></pre>
  
  <p>However, when I compile I get this issue:</p>
  
  <blockquote>
  <pre><code>$: g++ read_write.cpp -o read_write -I/usr/include/bluetooth -lbluetooth
  read_write.cpp: In function ‘int main(int, char**)’:
  read_write.cpp:11:20: error: ‘StartDiscovery’ was not declared in this scope
       StartDiscovery();
  </code></pre>
  </blockquote>
  
  <p>Where are all the functions mentioned in the bluez docs actually at? Are there header files somewhere other than /usr/include/bluetooth that I need to reference?</p>