[Mingw-users] deploying exe without mingw being installed?

I tried to move a folder with the libraries I had linked to my program to another computer and it failed because a mingw library wasn't present: libgomp-1.dll It worked after I did a full install of MingW. Is there something out there that can find all those "unexpected" libraries that should be included with the exe file created to make deployment easy? For that matter, am I missing something, or is should I have done something to statically link the exe so I wouldn't have to include any files? What's the "recommended" way to avoid this issue in the future? It would be nice to have all the dll's and libraries automatically put in the same "root" directory as the exe I suppose.Kurt

Thread view

I tried to move a folder with the libraries I had linked to my program to another computer and it failed because a mingw library wasn't present: libgomp-1.dll It worked after I did a full install of MingW. Is there something out there that can find all those "unexpected" libraries that should be included with the exe file created to make deployment easy? For that matter, am I missing something, or is should I have done something to statically link the exe so I wouldn't have to include any files? What's the "recommended" way to avoid this issue in the future? It would be nice to have all the dll's and libraries automatically put in the same "root" directory as the exe I suppose.Kurt

> From: KURT PETERS <peterskurt@...>
> Date: Sat, 28 Jan 2012 09:12:18 -0700
>
> I tried to move a folder with the libraries I had linked to my program to another computer and it failed because a mingw library wasn't present: libgomp-1.dll It worked after I did a full install of MingW. Is there something out there that can find all those "unexpected" libraries that should be included with the exe file created to make deployment easy?
After building the program, run depends.exe on it, and make sure you
have copies of all the DLLs it needs in the same directory with the
program's .exe file.
If you don't have depends.exe, you can find it here:
http://www.dependencywalker.com/