LLVM Clang 5.0 explicit in copy-initialization error

Posted by kevzettler on Stack Overflow See other posts from Stack Overflow or by kevzettler
Published on 2014-06-05T03:21:08Z Indexed on 2014/06/05 3:25 UTC
Read the original article Hit count: 193

Filed under:
|
|
|
|

I'm trying to compile an open source project on OSX that has only been tested on Linux.

$: g++ -v
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)
Target: x86_64-apple-da

I'm trying to compile with the following command line options

g++ -MMD -Wall -std=c++0x -stdlib=libc++ -Wno-sign-compare -Wno-unused-variable -ftemplate-depth=1024 -I /usr/local/Cellar/boost/1.55.0/include/boost/ -g -O3 -c level.cpp -o obj-opt/level.o

I am seeing several errors that look like this:

./square.h:39:70: error: chosen constructor is explicit in copy-initialization
      int strength = 0, double flamability = 0, map<SquareType, int> constructions = {}, bool ticking = false);

The project states the following are requirements for the Linux setup. How can I confirm I'm making that?

gcc-4.8.2
git
libboost 1.5+ with libboost-serialize
libsfml-dev 2+ (Ubuntu ppa that contains libsfml 2: )
freeglut-dev
libglew-dev

© Stack Overflow or respective owner

Related posts about c++

Related posts about osx