title: How do you determine where the MySQLCPPConn library file is?
body: <p>Consider the following Linux command to compile and run the <a href="https://dev.mysql.com/doc/connector-cpp/1.1/en/connector-cpp-examples-complete-example-1.html" rel="nofollow noreferrer">MySQL Connector/C++ Example 1</a>.</p>
  
  <pre><code>g++ test.cpp -lmysqlcppconn; ./a.out
  </code></pre>
  
  <p>I understand that the <code>-l</code> flag adds the specified library to the list of libraries to link, and the <code>-L</code> flag adds the specified directory to the list of directories to look in.</p>
  
  <p><strong>Q:</strong> Given that I did not specify the <code>-L</code> flag, how do I determine where <code>mysqlcppconn</code> is located?</p>
  
  <p>My program compiles and runs without errors; however, I want to know where the MySQL Connector/C++ is installed. I've managed to find some MySQL headers in <code>/usr/include/</code> and <code>/usr/include/cppconn</code>, and there is a directory called <code>mysql</code> in <code>/usr/lib</code>, but nothing named <code>mysqlcppconn</code> is inside.</p>
  
  <p>Thank you! I am re-introducing myself to developing on a Linux environment, and have lots to re-learn and catch up on.</p>