I want to migrate my openGL-wxWidgets-project from devC++ to Code::Blocks. For testing i have a second project using the same libraries, but wihout real function and only onde source-file.
Both projects are - as far as i can see - compiled and linked with the same settings, but one (the test-project) compiles to a single static exe-file, while the other one compiles to a dll-based dynamic exe - and i have absolute no idea why.
Whether it uses dll or not depends on the libraries used. If they reference the dll you will need the dll.
When your test project does not need a dll it means most likely that it does not use any function from the library.
So in order to link statically you need to use the right (non dll) libraries.