For me it works with ENIGMAPortable.exe without adding git separately to PATH as all the necessary things really is in the mingw (at least it seems).
When compiling from source then you must add mingw and git to PATH manually (as it should be).
Robert says the working_path change that Harri made broke it for him, he's commented it out now.
What? I don't think I commented anything out. I think the problem was/is that the .dll cannot be compiled from C::B or cmd. From bash it worked fine. After all of that is compiled I was able run just fine (has some LGM crashes, but just had to upgrade).
edit: Rober, ffs, you broke it already. This:
if (INVALID_FILE_ATTRIBUTES == GetFileAttributes(workpath.c_str()) && GetLastError()== ERROR_FILE_NOT_FOUND)
- workpath = exepath;
is needed to check appropriate working folder. Right now IT WILL NOT WORK WHEN COMPILED FROM SOURCE. And yes, you CAN check directories with that function. RTFM! So something else broke for it you.
edit2: Which you understood at a later commit and fixed again. So maybe it does work now.