MinGW dependancies
-
I'm not sure if I've given the proper label to my issue, but I have upgraded to the new version of MinGW and am now having trouble compiling my code in Codeblocks. The program runs fine when executed from Codeblocks, but once I try to run it from windows I get an error stating that I need a certain dll file for it to run. I found on a forum a linker option that has covered one of the required dlls but not all of them (-static-libgcc) What linker options can I use to get rid of all these dependancies, I don't care how large it makes my exe; I think its easier to live with a large exe than having to package dlls with my project. I appreciate any advise anyone has to offer.
-
I'm not sure if I've given the proper label to my issue, but I have upgraded to the new version of MinGW and am now having trouble compiling my code in Codeblocks. The program runs fine when executed from Codeblocks, but once I try to run it from windows I get an error stating that I need a certain dll file for it to run. I found on a forum a linker option that has covered one of the required dlls but not all of them (-static-libgcc) What linker options can I use to get rid of all these dependancies, I don't care how large it makes my exe; I think its easier to live with a large exe than having to package dlls with my project. I appreciate any advise anyone has to offer.
It depends what the DLL is. If it's one you've got the source for rebuild it as a static library (archive in MinGW terms) and link against that instead. If it's not then it might be time to look for a replacement or get rid of the code that uses that DLL. Cheers, Ash