double-conversion icon indicating copy to clipboard operation
double-conversion copied to clipboard

win7x32 (mingw) : can't load .so/.DLL for: stdc++.dll

Open KolodeznyDiver opened this issue 11 years ago • 3 comments

win7 x32 HaskellPlatform-2014.2.0.0-i386

*Main> main Loading package double-conversion-2.0.1.0 ... can't load .so/.DLL for: stdc++.dll (addDLL: could not load DLL) *Main>

mingv does not contain stdc++.dll, only libstdc++-6.dll

KolodeznyDiver avatar Aug 17 '14 18:08 KolodeznyDiver

Same error here, and I wasn't able to get double-conversion to link with libstdc++-6.dll taken from mingw.

Cf. this stack issue

rubenmoor avatar Aug 11 '15 09:08 rubenmoor

Should be fixed now.

bos avatar Dec 13 '16 19:12 bos

Now on linux, any project with double-conversion, stack lts-7.18

    Configuring double-conversion-2.0.2.0...
    Cabal-simple_mPHDZzAJ_1.24.0.0_ghc-8.0.1: Missing dependency on a foreign
    library:
    * Missing C library: stdc++
    This problem can usually be solved by installing the system package that
    provides this library (you may need the "-dev" version). If the library is
    already installed but in a non-standard location then you can use the flags
    --extra-include-dirs= and --extra-lib-dirs= to specify where it is.

Installed all version of libstdc++ I found, doesn't work anyway.

Interesting, that all works fine with resolver: nightly-2017-02-01, resolver: nightly-2017-02-02

If it's matter:

cat /etc/lsb-release 
DISTRIB_ID=LinuxMint
DISTRIB_RELEASE=18.1
DISTRIB_CODENAME=serena
DISTRIB_DESCRIPTION="Linux Mint 18.1 Serena"

dpkg -l

ii  lib64stdc++-4.8-dev:i386
ii  lib64stdc++-4.9-dev:i386
ii  lib64stdc++6:i386
ii  lib64stdc++6-4.7-dev:i386 
ii  libstdc++-4.8-dev:amd64   
ii  libstdc++-4.8-dev:i386    
ii  libstdc++-4.9-dev:i386    
ii  libstdc++5:amd64          
ii  libstdc++5:i386           
ii  libstdc++6:amd64          
ii  libstdc++6:i386           
ii  libstdc++6-4.7-dev:amd64  
ii  libstdc++6-4.7-dev:i386   
ii  libx32stdc++6:i386        

UPD installing g++ fixes the problem, but - with nightly-2017-02-01 compilation does not require this, i.e it works. It's very confusing.

voidlizard avatar Feb 03 '17 07:02 voidlizard