netbeans c++ with mysql windows <p>I am using netbeans 7 (c++) to connect to mySQL using Boost libraries (boost_1_53_0) and the required mySql C++ libraries (include and Lib) I added the path of the libraries in the project properties->C++ Compiler->include directories.</p> <p>I also added the path of the libraries in project properties->linker->include directories. Finally I added the mysqlcppconn.dll to project properties->linker->libraries</p> <p>this is the program: I'm just testing </p> <pre><code>#include &lt;cstdlib&gt; using namespace std; #include "cppconn/driver.h" #include "cppconn/connection.h" /* */ int main(int argc, char** argv) { sql::Driver *driver ; sql ::Connection *conn; driver = get_driver_instance(); conn = driver-&gt;connect("localhost","root","1qaz"); return 0; } </code></pre> <p>I've got this error at the output: /cygdrive/c/Users/NetBeansProjects/CppApplication_3/dist/Debug/Cy gwin-Windows/cppapplication_3.exe: error while loading shared libraries: mysqlcp pconn.dll: cannot open shared object file: No such file or directory</p> <p>I tried some of the suggested solutions about icluding the libraries but it still nothing any suggestions</p>