On 6/21/2015 10:43 PM, Óscar Fuentes wrote: > Edward Diener <eldlistmaili...@tropicsoft.com> > writes: > >>> At the end, adapting your PATH setting works the best. Just a simple >>> .bat file solves the problem for those of us that need to constantly >>> experiment with multiple installs: >>> >>> @rem mingw-w64-492.bat >>> @PATH=path-to-the-bin-directory;%PATH% >>> @%* >>> >>> >>> Now invoke that .bat with >>> >>> mingw-w64-492.bat g++ foo.cpp -o foo.exe >>> mingw-w64-492.bat foo.exe >> >> Sure, but the point is that this should never be needed. >> >> The easiest solution is that any dll that cc1plus.exe needs should have >> been installed in the same directory as cc1plus.exe. Your other solution >> of putting the needed dlls in %WINDIR%/System32 is not very good unless >> all versions of such dlls are backward compatible since each new >> installation of mingw-64 might have its own version of a dll. >> >> I am surprised that such good programmers should understand so little >> about producing a self-enclosed installation of mingw-64 ( or mingw ) to >> the point of not being able to create a distribution that just works >> automatically when any executable, such as gcc, is invoked directly from >> the command line. > > Apparently those programmers are not so inconvenienced as you are by > having to use methods like the .bat mentioned above. And I can assure > you that some of those programmers have quite a few gcc installs on > their machines, that they use on a regular basis.
You are much better than the original mingw installations but your reliance on having to set the PATH rather than have a direct invocation work correctly is a real PITA. > >>From what I recall, Visual Studio is even worse on this regard, as it > requires setting some environment variables with paths to work. That's > what vcvars32.bat does. How do you deal with multiple VS installs from > the command line? Or you just use the IDE? I'm succesfully using the > .bat method described above for multiple installs of VS and Mingw-w64. As my beloved mother used to say when I was a kid, "Just because your friend Johnny wants to jump off the top of the Empire State building does that mean you have to do it too?" ------------------------------------------------------------------------------ Monitor 25 network devices or servers for free with OpManager! OpManager is web-based network management software that monitors network devices and physical & virtual servers, alerts via email & sms for fault. Monitor 25 devices for free with no restriction. Download now http://ad.doubleclick.net/ddm/clk/292181274;119417398;o _______________________________________________ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public