I normally just add the path to the DLLs to the Compiler "additional paths" list.
Note: You need to remember to remove the path later.
The above is not as good as copying the DLLs to the execution folder; but, it seemed easier to me.
The above assumes the DLLs was not built by the Code::Blocks project and are not already in the system path.
If either is true, it should work without any changes.
Tim S.