I am using SFML, and I am building an application in Code::Blocks and mingw32. I have have added the SFML libraries (sfml-whatever.a) to my project, and it runs nicely.
BUT iIrc, the static libraries get ‘compiled’ into the executable. If this is so, then why do I have to place all the SFML DLL’s next to the executable for it to run anywhere outside of Code::Blocks? And if I were to somehow ‘dynamically link’ the DLL’s from within Code::Blocks to my project, (I don’t know how to do that), would I still have to ship my executable with all the .a files for it to run properly?
Thanks in advance, I am not quite familiar with libraries, static or dynamic. If it makes any difference, I am working on Ubuntu linux, and I am using mingw32 for cross-compiling.
In this case, the static libraries simply contain the code that interfaces to the dynamic libraries, it’s not the actual library code.