Closed nh2 closed 5 years ago
#error This file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options
-- isn't that what the cabal file should take care of?
Or is this the problem you mentioned @basvandijk ?
I also wasn't lucky with the nix-based shell:
cd opencv && nix-shell default.nix
; inside:
stack build opencv
got me:
/nix/store/h0lbngpv6ln56hjj59i6l77vxq25flbz-binutils-2.30/bin/ld.gold: error: cannot find -lz
final.zlib
to ../overlay.nix
I get <command line>: can't load .so/.DLL for: /nix/store/fg4yq8i8wd08xg3fy58l6q73cjy8hjr2-glibc-2.27/lib/librt.so (/nix/store/fg4yq8i8wd08xg3fy58l6q73cjy8hjr2-glibc-2.27/lib/librt.so: symbol __close_nocancel, version GLIBC_PRIVATE not defined in file libc.so.6 with link time reference)
./Setup.hs configure && ./Setup.hs build
I get:
/run/user/1000/ghc10651_0/libghc_273.so: undefined symbol: _Znwm
ghc-options: -lstdc++
@nh2 I was able to do a successful stack build with the latest master (62738781c61de6069bdc1cf058ae530a02786727) using stack-1.9.3
.
Also note that you need GCC >= 7 to build successfully. See how we upgrade gcc in our .travis.yml
.
Could you reopen if this is still an issue for you?
On commit dd51d7cfb1513e03516706465c246164e33fb589, Ubuntu 16.04,
stack build
gets me: