Last active
August 29, 2015 14:02
-
-
Save kevzettler/6baf208a73f16a2974f5 to your computer and use it in GitHub Desktop.
keeperll clang
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nknown542696d2a12b:keeperrl kevzettler$ make -j 8 OPT=true | |
g++ -MMD -Wall -std=c++0x -stdlib=libc++ -static-libstdc++ -Wno-sign-compare -Wno-unused-variable -I /usr/local/Cellar/boost/1.55.0/include/boost/ -I. -I./extern -static-libstdc++ -g -O3 -c time_queue.cpp -o obj-opt/time_queue.o | |
g++ -MMD -Wall -std=c++0x -stdlib=libc++ -static-libstdc++ -Wno-sign-compare -Wno-unused-variable -I /usr/local/Cellar/boost/1.55.0/include/boost/ -I. -I./extern -static-libstdc++ -g -O3 -c level.cpp -o obj-opt/level.o | |
g++ -MMD -Wall -std=c++0x -stdlib=libc++ -static-libstdc++ -Wno-sign-compare -Wno-unused-variable -I /usr/local/Cellar/boost/1.55.0/include/boost/ -I. -I./extern -static-libstdc++ -g -O3 -c model.cpp -o obj-opt/model.o | |
g++ -MMD -Wall -std=c++0x -stdlib=libc++ -static-libstdc++ -Wno-sign-compare -Wno-unused-variable -I /usr/local/Cellar/boost/1.55.0/include/boost/ -I. -I./extern -static-libstdc++ -g -O3 -c square.cpp -o obj-opt/square.o | |
g++ -MMD -Wall -std=c++0x -stdlib=libc++ -static-libstdc++ -Wno-sign-compare -Wno-unused-variable -I /usr/local/Cellar/boost/1.55.0/include/boost/ -I. -I./extern -static-libstdc++ -g -O3 -c util.cpp -o obj-opt/util.o | |
g++ -MMD -Wall -std=c++0x -stdlib=libc++ -static-libstdc++ -Wno-sign-compare -Wno-unused-variable -I /usr/local/Cellar/boost/1.55.0/include/boost/ -I. -I./extern -static-libstdc++ -g -O3 -c monster.cpp -o obj-opt/monster.o | |
g++ -MMD -Wall -std=c++0x -stdlib=libc++ -static-libstdc++ -Wno-sign-compare -Wno-unused-variable -I /usr/local/Cellar/boost/1.55.0/include/boost/ -I. -I./extern -static-libstdc++ -g -O3 -c square_factory.cpp -o obj-opt/square_factory.o | |
g++ -MMD -Wall -std=c++0x -stdlib=libc++ -static-libstdc++ -Wno-sign-compare -Wno-unused-variable -I /usr/local/Cellar/boost/1.55.0/include/boost/ -I. -I./extern -static-libstdc++ -g -O3 -c view.cpp -o obj-opt/view.o | |
clang: warning: argument unused during compilation: '-static-libstdc++' | |
clang: warning: clangargument unused during compilation: '-static-libstdc++': | |
warning: clang: warningargument unused during compilation: '-static-libstdc++': | |
clangclang: : warning: warningargument unused during compilation: '-static-libstdc++': | |
argument unused during compilation: '-static-libstdc++' | |
clang: warning: argument unused during compilation: '-static-libstdc++' | |
clang: warning: argument unused during compilation: '-static-libstdc++' | |
clang: warning: argument unused during compilation: '-static-libstdc++' | |
clang: warning: argument unused during compilation: '-static-libstdc++' | |
clang: warning: argument unused during compilation: '-static-libstdc++' | |
argument unused during compilation: '-static-libstdc++'clang: | |
warning: argument unused during compilation: '-static-libstdc++'clang | |
clang: : warning: warningargument unused during compilation: '-static-libstdc++'clang: | |
: argument unused during compilation: '-static-libstdc++'warning: argument unused during compilation: '-static-libstdc++' | |
clang: warning: argument unused during compilation: '-static-libstdc++' | |
In file included from time_queue.cpp:18: | |
In file included from ./time_queue.h:20: | |
./creature.h:332:1: warning: 'SpellInfo' defined as a struct here but previously declared as a class [-Wmismatched-tags] | |
struct SpellInfo { | |
^ | |
./creature_attributes.h:34:1: note: did you mean struct here? | |
class SpellInfo; | |
^~~~~ | |
struct | |
In file included from level.cpp:18: | |
In file included from ./level.h:20: | |
In file included from ./time_queue.h:20: | |
./creature.h:332:1: warning: 'SpellInfo' defined as a struct here but previously declared as a class [-Wmismatched-tags] | |
struct SpellInfo { | |
^ | |
./creature_attributes.h:34:1: note: did you mean struct here? | |
class SpellInfo; | |
^~~~~ | |
struct | |
In file included from model.cpp:18: | |
In file included from ./model.h:20: | |
In file included from ./level.h:20: | |
In file included from ./time_queue.h:20: | |
./creature.h:332:1: warning: 'SpellInfo' defined as a struct here but previously declared as a class [-Wmismatched-tags] | |
struct SpellInfo { | |
^ | |
./creature_attributes.h:34:1: note: did you mean struct here? | |
class SpellInfo; | |
^~~~~ | |
struct | |
In file included from monster.cpp:18: | |
In file included from ./monster.h:19: | |
./creature.h:332:1: warning: 'SpellInfo' defined as a struct here but previously declared as a class [-Wmismatched-tags] | |
struct SpellInfo { | |
^ | |
./creature_attributes.h:34:1: note: did you mean struct here? | |
class SpellInfo; | |
^~~~~ | |
struct | |
In file included from square_factory.cpp:19: | |
In file included from ./square.h:21: | |
./creature.h:332:1: warning: 'SpellInfo' defined as a struct here but previously declared as a class [-Wmismatched-tags] | |
struct SpellInfo { | |
^ | |
./creature_attributes.h:34:1: note: did you mean struct here? | |
class SpellInfo; | |
^~~~~ | |
struct | |
In file included from square.cpp:18: | |
In file included from ./square.h:21: | |
./creature.h:332:1: warning: 'SpellInfo' defined as a struct here but previously declared as a class [-Wmismatched-tags] | |
struct SpellInfo { | |
^ | |
./creature_attributes.h:34:1: note: did you mean struct here? | |
class SpellInfo; | |
^~~~~ | |
struct | |
In file included from square_factory.cpp:19: | |
./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); | |
^ ~~ | |
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/map:838:14: note: constructor declared here | |
explicit map(const key_compare& __comp = key_compare()) | |
^ | |
./square.h:39:70: note: passing argument to parameter 'constructions' here | |
int strength = 0, double flamability = 0, map<SquareType, int> constructions = {}, bool ticking = false); | |
^ | |
./square.h:39:70: error: missing default argument on parameter 'constructions' | |
int strength = 0, double flamability = 0, map<SquareType, int> constructions = {}, bool ticking = false); | |
^ | |
In file included from square.cpp:18: | |
./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); | |
^ ~~ | |
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/map:838:14: note: constructor declared here | |
explicit map(const key_compare& __comp = key_compare()) | |
^ | |
./square.h:39:70: note: passing argument to parameter 'constructions' here | |
int strength = 0, double flamability = 0, map<SquareType, int> constructions = {}, bool ticking = false); | |
^ | |
./square.h:39:70: error: missing default argument on parameter 'constructions' | |
int strength = 0, double flamability = 0, map<SquareType, int> constructions = {}, bool ticking = false); | |
^ | |
In file included from level.cpp:18: | |
In file included from ./level.h:23: | |
In file included from ./field_of_view.h:20: | |
./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); | |
^ ~~ | |
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/map:838:14: note: constructor declared here | |
explicit map(const key_compare& __comp = key_compare()) | |
^ | |
./square.h:39:70: note: passing argument to parameter 'constructions' here | |
int strength = 0, double flamability = 0, map<SquareType, int> constructions = {}, bool ticking = false); | |
^ | |
./square.h:39:70: error: missing default argument on parameter 'constructions' | |
int strength = 0, double flamability = 0, map<SquareType, int> constructions = {}, bool ticking = false); | |
^ | |
In file included from model.cpp:18: | |
In file included from ./model.h:20: | |
In file included from ./level.h:23: | |
In file included from ./field_of_view.h:20: | |
./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); | |
^ ~~ | |
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/map:838:14: note: constructor declared here | |
explicit map(const key_compare& __comp = key_compare()) | |
^ | |
./square.h:39:70: note: passing argument to parameter 'constructions' here | |
int strength = 0, double flamability = 0, map<SquareType, int> constructions = {}, bool ticking = false); | |
^ | |
./square.h:39:70: error: missing default argument on parameter 'constructions' | |
int strength = 0, double flamability = 0, map<SquareType, int> constructions = {}, bool ticking = false); | |
^ | |
./square.h:232:28: error: chosen constructor is explicit in copy-initialization | |
map<SquareType, int> constructions = {}, | |
^ ~~ | |
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/map:838:14: note: constructor declared here | |
explicit map(const key_compare& __comp = key_compare()) | |
^ | |
./square.h:232:28: note: passing argument to parameter 'constructions' here | |
map<SquareType, int> constructions = {}, | |
^ | |
./square.h:232:28: error: missing default argument on parameter 'constructions' | |
map<SquareType, int> constructions = {}, | |
^ | |
./square.h:232:28: error: chosen constructor is explicit in copy-initialization | |
map<SquareType, int> constructions = {}, | |
^ ~~ | |
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/map:838:14: note: constructor declared here | |
explicit map(const key_compare& __comp = key_compare()) | |
^ | |
./square.h:232:28: note: passing argument to parameter 'constructions' here | |
map<SquareType, int> constructions = {}, | |
^ | |
./square.h:232:28: error: missing default argument on parameter 'constructions' | |
map<SquareType, int> constructions = {}, | |
^ | |
./square.h:232:28: error: chosen constructor is explicit in copy-initialization | |
map<SquareType, int> constructions = {}, | |
^ ~~ | |
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/map:838:14: note: constructor declared here | |
explicit map(const key_compare& __comp = key_compare()) | |
^ | |
./square.h:232:28: note: passing argument to parameter 'constructions' here | |
map<SquareType, int> constructions = {}, | |
^ | |
./square.h:232:28: error: missing default argument on parameter 'constructions' | |
map<SquareType, int> constructions = {}, | |
^ | |
./square.h:232:28: error: chosen constructor is explicit in copy-initialization | |
map<SquareType, int> constructions = {}, | |
^ ~~ | |
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/map:838:14: note: constructor declared here | |
explicit map(const key_compare& __comp = key_compare()) | |
^ | |
./square.h:232:28: note: passing argument to parameter 'constructions' here | |
map<SquareType, int> constructions = {}, | |
^ | |
./square.h:232:28: error: missing default argument on parameter 'constructions' | |
map<SquareType, int> constructions = {}, | |
^ | |
square_factory.cpp:28:9: error: no matching constructor for initialization of 'Square' | |
: Square(obj, name, Vision::get(VisionId::NORMAL), true, 10000) { | |
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
./square.h:38:3: note: candidate constructor not viable: requires at least 7 arguments, but 5 were provided | |
Square(const ViewObject& vo, const string& name, Vision* vision, bool canHide = false, | |
^ | |
./square.h:196:22: note: candidate constructor not viable: requires 0 arguments, but 5 were provided | |
SERIALIZATION_DECL(Square); | |
^ | |
./serialization.h:58:3: note: expanded from macro 'SERIALIZATION_DECL' | |
A() {} \ | |
^ | |
./square.h:31:7: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 5 were provided | |
class Square { | |
^ | |
square_factory.cpp:61:7: error: no matching constructor for initialization of 'Square' | |
: Square(obj, "secret door", nullptr), secondary(sec), uncovered(false) { | |
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
./square.h:38:3: note: candidate constructor not viable: requires at least 7 arguments, but 3 were provided | |
Square(const ViewObject& vo, const string& name, Vision* vision, bool canHide = false, | |
^ | |
./square.h:196:22: note: candidate constructor not viable: requires 0 arguments, but 3 were provided | |
SERIALIZATION_DECL(Square); | |
^ | |
./serialization.h:58:3: note: expanded from macro 'SERIALIZATION_DECL' | |
A() {} \ | |
^ | |
./square.h:31:7: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 3 were provided | |
class Square { | |
^ | |
square_factory.cpp:205:7: error: no matching constructor for initialization of 'Square' | |
Square(object, name, Vision::get(VisionId::NORMAL), true, 30, 0.5), creatureId(id), minCreatures(minC), maxCreatures(maxC), msgItem(_msgItem)... | |
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
./square.h:38:3: note: candidate constructor not viable: requires at least 7 arguments, but 6 were provided | |
Square(const ViewObject& vo, const string& name, Vision* vision, bool canHide = false, | |
^ | |
./square.h:196:22: note: candidate constructor not viable: requires 0 arguments, but 6 were provided | |
SERIALIZATION_DECL(Square); | |
^ | |
./serialization.h:58:3: note: expanded from macro 'SERIALIZATION_DECL' | |
A() {} \ | |
^ | |
./square.h:31:7: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 6 were provided | |
class Square { | |
^ | |
square_factory.cpp:290:40: error: no matching constructor for initialization of 'Square' | |
Fountain(const ViewObject& object) : Square(object, "fountain", Vision::get(VisionId::NORMAL), true, 100) {} | |
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
./square.h:38:3: note: candidate constructor not viable: requires at least 7 arguments, but 5 were provided | |
Square(const ViewObject& vo, const string& name, Vision* vision, bool canHide = false, | |
^ | |
./square.h:196:22: note: candidate constructor not viable: requires 0 arguments, but 5 were provided | |
SERIALIZATION_DECL(Square); | |
^ | |
./serialization.h:58:3: note: expanded from macro 'SERIALIZATION_DECL' | |
A() {} \ | |
^ | |
./square.h:31:7: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 5 were provided | |
class Square { | |
^ | |
square_factory.cpp:375:56: error: no matching constructor for initialization of 'Square' | |
TrapSquare(const ViewObject& object, EffectType e) : Square(object, "floor", Vision::get(VisionId::NORMAL)), effect(e) { | |
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
./square.h:38:3: note: candidate constructor not viable: requires at least 7 arguments, but 3 were provided | |
Square(const ViewObject& vo, const string& name, Vision* vision, bool canHide = false, | |
^ | |
./square.h:196:22: note: candidate constructor not viable: requires 0 arguments, but 3 were provided | |
SERIALIZATION_DECL(Square); | |
^ | |
./serialization.h:58:3: note: expanded from macro 'SERIALIZATION_DECL' | |
A() {} \ | |
^ | |
./square.h:31:7: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 3 were provided | |
class Square { | |
^ | |
square_factory.cpp:403:36: error: no matching constructor for initialization of 'Square' | |
Door(const ViewObject& object) : Square(object, "door", nullptr, true, 100, 1) {} | |
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
./square.h:38:3: note: candidate constructor not viable: requires at least 7 arguments, but 6 were provided | |
Square(const ViewObject& vo, const string& name, Vision* vision, bool canHide = false, | |
^ | |
./square.h:196:22: note: candidate constructor not viable: requires 0 arguments, but 6 were provided | |
SERIALIZATION_DECL(Square); | |
^ | |
./serialization.h:58:3: note: expanded from macro 'SERIALIZATION_DECL' | |
A() {} \ | |
^ | |
./square.h:31:7: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 6 were provided | |
class Square { | |
^ | |
square_factory.cpp:433:16: warning: 'TribeDoor::canDestroy' hides overloaded virtual function [-Woverloaded-virtual] | |
virtual bool canDestroy(const Creature* c) const override { | |
^ | |
square_factory.cpp:405:16: note: hidden overloaded virtual function 'Door::canDestroy' declared here: different number of parameters (0 vs 1) | |
virtual bool canDestroy() const override { | |
^ | |
square_factory.cpp:476:71: error: chosen constructor is explicit in copy-initialization | |
: SolidSquare(object, "barricade", Vision::get(VisionId::NORMAL), {}, false, 0.5), | |
^~ | |
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/map:838:14: note: constructor declared here | |
explicit map(const key_compare& __comp = key_compare()) | |
^ | |
./square.h:232:28: note: passing argument to parameter 'constructions' here | |
map<SquareType, int> constructions = {}, | |
^ | |
square_factory.cpp:513:9: error: no matching constructor for initialization of 'Square' | |
: Square(object.setModifier(ViewObject::ROUND_SHADOW), name, Vision::get(VisionId::NORMAL) , true, 100, flamability), | |
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
./square.h:38:3: note: candidate constructor not viable: requires at least 7 arguments, but 6 were provided | |
Square(const ViewObject& vo, const string& name, Vision* vision, bool canHide = false, | |
^ | |
./square.h:196:22: note: candidate constructor not viable: requires 0 arguments, but 6 were provided | |
SERIALIZATION_DECL(Square); | |
^ | |
./serialization.h:58:3: note: expanded from macro 'SERIALIZATION_DECL' | |
A() {} \ | |
^ | |
./square.h:31:7: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 6 were provided | |
class Square { | |
^ | |
square_factory.cpp:610:9: error: no matching constructor for initialization of 'Square' | |
: Square(object, "shrine to " + d->getName(), Vision::get(VisionId::NORMAL) , true, 100, 0), deity(d) { | |
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
./square.h:38:3: note: candidate constructor not viable: requires at least 7 arguments, but 6 were provided | |
Square(const ViewObject& vo, const string& name, Vision* vision, bool canHide = false, | |
^ | |
./square.h:196:22: note: candidate constructor not viable: requires 0 arguments, but 6 were provided | |
SERIALIZATION_DECL(Square); | |
^ | |
./serialization.h:58:3: note: expanded from macro 'SERIALIZATION_DECL' | |
A() {} \ | |
^ | |
./square.h:31:7: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 6 were provided | |
class Square { | |
^ | |
square_factory.cpp:745:72: error: chosen constructor is explicit in copy-initialization | |
: Square(object, name, Vision::get(VisionId::NORMAL), false, 0, 0, {}, true) {} | |
^~ | |
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/map:838:14: note: constructor declared here | |
explicit map(const key_compare& __comp = key_compare()) | |
^ | |
./square.h:39:70: note: passing argument to parameter 'constructions' here | |
int strength = 0, double flamability = 0, map<SquareType, int> constructions = {}, bool ticking = false); | |
^ | |
square_factory.cpp:834:20: error: no matching constructor for initialization of 'Square' | |
return new Square(ViewObject(ViewId::BRIDGE, ViewLayer::FLOOR,"Rope bridge"), "rope bridge", | |
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
./square.h:38:3: note: candidate constructor not viable: requires at least 7 arguments, but 3 were provided | |
Square(const ViewObject& vo, const string& name, Vision* vision, bool canHide = false, | |
^ | |
./square.h:196:22: note: candidate constructor not viable: requires 0 arguments, but 3 were provided | |
SERIALIZATION_DECL(Square); | |
^ | |
./serialization.h:58:3: note: expanded from macro 'SERIALIZATION_DECL' | |
A() {} \ | |
^ | |
./square.h:31:7: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 3 were provided | |
class Square { | |
^ | |
square_factory.cpp:840:20: error: no matching constructor for initialization of 'Square' | |
return new Square(ViewObject(ViewId::CROPS, ViewLayer::FLOOR_BACKGROUND, "Potatoes"), | |
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
./square.h:38:3: note: candidate constructor not viable: requires at least 7 arguments, but 6 were provided | |
Square(const ViewObject& vo, const string& name, Vision* vision, bool canHide = false, | |
^ | |
./square.h:196:22: note: candidate constructor not viable: requires 0 arguments, but 6 were provided | |
SERIALIZATION_DECL(Square); | |
^ | |
./serialization.h:58:3: note: expanded from macro 'SERIALIZATION_DECL' | |
A() {} \ | |
^ | |
./square.h:31:7: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 6 were provided | |
class Square { | |
^ | |
square_factory.cpp:843:20: error: no matching constructor for initialization of 'Square' | |
return new Square(ViewObject(ViewId::MUD, ViewLayer::FLOOR_BACKGROUND, "Mud"), "mud", Vision::get(VisionId::NORMAL)); | |
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
./square.h:38:3: note: candidate constructor not viable: requires at least 7 arguments, but 3 were provided | |
Square(const ViewObject& vo, const string& name, Vision* vision, bool canHide = false, | |
^ | |
./square.h:196:22: note: candidate constructor not viable: requires 0 arguments, but 3 were provided | |
SERIALIZATION_DECL(Square); | |
^ | |
./serialization.h:58:3: note: expanded from macro 'SERIALIZATION_DECL' | |
A() {} \ | |
^ | |
./square.h:31:7: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 3 were provided | |
class Square { | |
^ | |
square_factory.cpp:845:20: error: no matching constructor for initialization of 'Square' | |
return new Square(ViewObject(ViewId::ROAD, ViewLayer::FLOOR, "Road"), "road", Vision::get(VisionId::NORMAL)); | |
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
./square.h:38:3: note: candidate constructor not viable: requires at least 7 arguments, but 3 were provided | |
Square(const ViewObject& vo, const string& name, Vision* vision, bool canHide = false, | |
^ | |
./square.h:196:22: note: candidate constructor not viable: requires 0 arguments, but 3 were provided | |
SERIALIZATION_DECL(Square); | |
^ | |
./serialization.h:58:3: note: expanded from macro 'SERIALIZATION_DECL' | |
A() {} \ | |
^ | |
./square.h:31:7: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 3 were provided | |
class Square { | |
^ | |
square_factory.cpp:866:20: error: no matching constructor for initialization of 'SolidSquare' | |
return new SolidSquare(ViewObject(ViewId::LOW_ROCK_WALL, ViewLayer::FLOOR, "Wall") | |
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
./square.h:231:3: note: candidate constructor not viable: requires at least 4 arguments, but 2 were provided | |
SolidSquare(const ViewObject& vo, const string& name, Vision* vision = nullptr, | |
^ | |
./square.h:237:22: note: candidate constructor not viable: requires 0 arguments, but 2 were provided | |
SERIALIZATION_DECL(SolidSquare); | |
^ | |
./serialization.h:58:3: note: expanded from macro 'SERIALIZATION_DECL' | |
A() {} \ | |
^ | |
./square.h:229:7: note: candidate constructor (the implicit move constructor) not viable: requires 1 argument, but 2 were provided | |
class SolidSquare : public Square { | |
^ | |
./square.h:229:7: note: candidate constructor (the implicit copy constructor) not viable: requires 1 argument, but 2 were provided | |
fatal error: too many errors emitted, stopping now [-ferror-limit=] | |
In file included from model.cpp:18: | |
In file included from ./model.h:26: | |
./collective.h:311:62: error: chosen constructor is explicit in copy-initialization | |
vector<pair<Item*, Vec2>> getTrapItems(TrapType, set<Vec2> = {}) const; | |
^ ~~ | |
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/set:428:14: note: constructor declared here | |
explicit set(const value_compare& __comp = value_compare()) | |
^ | |
./collective.h:311:62: note: passing argument to parameter here | |
vector<pair<Item*, Vec2>> getTrapItems(TrapType, set<Vec2> = {}) const; | |
^ | |
In file included from level.cpp:20: | |
In file included from ./model.h:26: | |
./collective.h:311:62: error: chosen constructor is explicit in copy-initialization | |
vector<pair<Item*, Vec2>> getTrapItems(TrapType, set<Vec2> = {}) const; | |
^ ~~ | |
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/set:428:14: note: constructor declared here | |
explicit set(const value_compare& __comp = value_compare()) | |
^ | |
./collective.h:311:62: note: passing argument to parameter here | |
vector<pair<Item*, Vec2>> getTrapItems(TrapType, set<Vec2> = {}) const; | |
^ | |
g++ -MMD -Wall -std=c++0x -stdlib=libc++ -static-libstdc++ -Wno-sign-compare -Wno-unused-variable -I /usr/local/Cellar/boost/1.55.0/include/boost/ -I. -I./extern -static-libstdc++ -g -O3 -c creature.cpp -o obj-opt/creature.o | |
clang: warning: argument unused during compilation: '-static-libstdc++' | |
clang: warning: argument unused during compilation: '-static-libstdc++' | |
1 warning and 4 errors generated. | |
make: *** [obj-opt/square.o] Error 1 | |
make: *** Waiting for unfinished jobs.... | |
2 warnings and 20 errors generated. | |
make: *** [obj-opt/square_factory.o] Error 1 | |
In file included from creature.cpp:18: | |
./creature.h:332:1: warning: 'SpellInfo' defined as a struct here but previously declared as a class [-Wmismatched-tags] | |
struct SpellInfo { | |
^ | |
./creature_attributes.h:34:1: note: did you mean struct here? | |
class SpellInfo; | |
^~~~~ | |
struct | |
1 warning and 5 errors generated. | |
make: *** [obj-opt/level.o] Error 1 | |
In file included from creature.cpp:20: | |
In file included from ./level.h:23: | |
In file included from ./field_of_view.h:20: | |
./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); | |
^ ~~ | |
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/map:838:14: note: constructor declared here | |
explicit map(const key_compare& __comp = key_compare()) | |
^ | |
./square.h:39:70: note: passing argument to parameter 'constructions' here | |
int strength = 0, double flamability = 0, map<SquareType, int> constructions = {}, bool ticking = false); | |
^ | |
./square.h:39:70: error: missing default argument on parameter 'constructions' | |
int strength = 0, double flamability = 0, map<SquareType, int> constructions = {}, bool ticking = false); | |
^ | |
./square.h:232:28: error: chosen constructor is explicit in copy-initialization | |
map<SquareType, int> constructions = {}, | |
^ ~~ | |
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/map:838:14: note: constructor declared here | |
explicit map(const key_compare& __comp = key_compare()) | |
^ | |
./square.h:232:28: note: passing argument to parameter 'constructions' here | |
map<SquareType, int> constructions = {}, | |
^ | |
./square.h:232:28: error: missing default argument on parameter 'constructions' | |
map<SquareType, int> constructions = {}, | |
^ | |
1 warning and 5 errors generated. | |
make: *** [obj-opt/model.o] Error 1 | |
In file included from creature.cpp:25: | |
In file included from ./model.h:26: | |
./collective.h:311:62: error: chosen constructor is explicit in copy-initialization | |
vector<pair<Item*, Vec2>> getTrapItems(TrapType, set<Vec2> = {}) const; | |
^ ~~ | |
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/set:428:14: note: constructor declared here | |
explicit set(const value_compare& __comp = value_compare()) | |
^ | |
./collective.h:311:62: note: passing argument to parameter here | |
vector<pair<Item*, Vec2>> getTrapItems(TrapType, set<Vec2> = {}) const; | |
^ | |
creature.cpp:2143:27: warning: adding 'bool' to a string does not append to the string [-Wstring-plus-int] | |
ret.push_back("blind" + isAffected(BLIND) ? (" " + getRemainingString(BLIND)) : ""); | |
~~~~~~~~^~~~~~~~~~~~~~~~~~~ | |
creature.cpp:2143:27: note: use array indexing to silence this warning | |
ret.push_back("blind" + isAffected(BLIND) ? (" " + getRemainingString(BLIND)) : ""); | |
^ | |
& [ ] | |
creature.cpp:2143:47: warning: operator '?:' has lower precedence than '+'; '+' will be evaluated first [-Wparentheses] | |
ret.push_back("blind" + isAffected(BLIND) ? (" " + getRemainingString(BLIND)) : ""); | |
~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ | |
creature.cpp:2143:47: note: place parentheses around the '+' expression to silence this warning | |
ret.push_back("blind" + isAffected(BLIND) ? (" " + getRemainingString(BLIND)) : ""); | |
^ | |
( ) | |
creature.cpp:2143:47: note: place parentheses around the '?:' expression to evaluate it first | |
ret.push_back("blind" + isAffected(BLIND) ? (" " + getRemainingString(BLIND)) : ""); | |
^ | |
( ) | |
1 warning generated. | |
1 warning generated. | |
3 warnings and 5 errors generated. | |
make: *** [obj-opt/creature.o] Error 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment