Dynamic libraries in Code::Blocks

I am new using code::blocks, but not new doing programming. I have some problems understanding the proper way to link/dinamically libraries, and so I need someone who can point me out the right direction!

Im trying to connect to a MySql database using SqlApi++ Library. So I follow this tutorial: http://cbsecsnip.in/tutorial/how-to-connect-MySQL-database-with-CPP/how-to-connect-MySQL-database-with-CPP.php

I can build my project correctly . However when I try to run the .exe file, it crashes! the cmd window pops up and then a warning message window pops up saying that the myAppName.exe has stopped working. The problem is the file libsqlapid.dll which I have copied into my project's debug folder under the bin folder (as the tutorial suggests).

So my question is, what am I doing wrong? Or where can i find a good source with examples than i can read and follow to work out the exampel. I have been reading the info her in code::blocks website and in sqlapi++ website but i dont find anything.
> However when I try to run the .exe file, it crashes!
> The problem is the file libsqlapid.dll
¿are you sure that the problem is not in your code?
well.... Since i am just following the tutorial in the link posted I asume that the code is correct.

If i debug my code, the call stack window stops at the point where ibsqlapid.dll is loaded.

I have also run my project without the .dll file and then i get an error message saying that the file is missiming.
ok... the problem is that i need to recompile the libraries in SQLAPI. how do I recompile the libraries?
Topic archived. No new replies allowed.