On 11/03/2011 13:17, Earnie wrote:

> An ugly workaround to the real problem is to put program A in a
> directory with its libstdc++-6.dll and put program B in another
> directory with its libstdc++-6.dll and then add the directories to PATH.

This doesn't work, although I don't yet understand why. PATH itself 
shouldn't be relevant here, as the app's installation directory should 
come up earlier in the dll search order anyway. I'm hoping to find out 
what's going on here tonight...

> Another workaround is to create static builds of both A and B.

I may have to do this, although the exception problem is worrying.

> Another workaround is to rename both dll files something like
> mingw-libstdc++-6.dll and mingw64-libstdc++-6.dll and modify the specs
> file for each distributed compiler so that it uses the renamed dll.

Ok, this may be the only long-term solution. However, it does reduce the 
usefulness of pre-built compiler binaries (to the point where they're 
*not* useful for dynamic builds??)

> Another workaround, and probably the better, use only one distribution
> of compiler.  Why do you need to use both?

Well, this is the real problem. I'm responsible for App 'foo'; App 'bar' 
isn't mine, and I don't compile it. There may be hundreds (Ok, 3 or 4) 
exes on my Windows box that I know nothing about, but which were build 
with MinGW, each of which has its own libstdc++. It doesn't matter (does 
it?) if some of them were compiled on mingw-w64, and some on mingw; what 
matters is if they require different libstdc++ versions.

In my particular case, it so happens that the end-user runs 'foo' and 
'bar' in the same flow, using a driver that I've written.

>> 1 - I'm a bit hazy on why I've never seen a requirement for distributing
>> various dlls before. Is this new with 4.4/4.5, and why?
>
> It wasn't until the gcc4 series that it was even possible to build a
> libstdc++ dll, so yes, it is new with that series.

So how was this handled in 3.4? I was doing dynamic builds without problems.

Thanks -

Paul

------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to