Block(Level* level, int x, int y);
Block b = new Block(this, 0,0);
Argument of type 'Level *' is incompatible with parameter of type 'Level *' |
|
|
|
|
|
|
no instance of constructor "Block::Block" matches the argument list |
1> SoftBlock.cpp 1>c:\users\matthias\documents\visual studio 2010\projects\beast\beast\block.h(12): error C2143: syntax error : missing ';' before '*' 1>c:\users\matthias\documents\visual studio 2010\projects\beast\beast\block.h(12): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 1>c:\users\matthias\documents\visual studio 2010\projects\beast\beast\block.h(12): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 1>c:\users\matthias\documents\visual studio 2010\projects\beast\beast\block.h(15): error C2061: syntax error : identifier 'Level' 1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(29): error C2628: 'Block' followed by 'unsigned' is illegal (did you forget a ';'?) 1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(29): error C2628: 'Block' followed by 'int' is illegal (did you forget a ';'?) 1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(29): error C2347: '__w64' : can not be used with type '__w64 Block' 1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(29): error C2371: 'size_t' : redefinition; different basic types 1> c:\users\matthias\documents\visual studio 2010\projects\beast\beast\predefined c++ types (compiler internal)(19) : see declaration of 'size_t' 1>c:\users\matthias\documents\visual studio 2010\projects\beast\beast\level.h(16): error C2143: syntax error : missing ';' before '*' 1>c:\users\matthias\documents\visual studio 2010\projects\beast\beast\level.h(16): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 1>c:\users\matthias\documents\visual studio 2010\projects\beast\beast\level.h(16): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 1>c:\users\matthias\documents\visual studio 2010\projects\beast\beast\block.h(3): error C2011: 'Block' : 'class' type redefinition 1> c:\users\matthias\documents\visual studio 2010\projects\beast\beast\block.h(3) : see declaration of 'Block' |
1> Level.cpp 1>c:\users\matthias\documents\visual studio 2010\projects\beast\beast\block.h(12): error C2143: syntax error : missing ';' before '*' 1>c:\users\matthias\documents\visual studio 2010\projects\beast\beast\block.h(12): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 1>c:\users\matthias\documents\visual studio 2010\projects\beast\beast\block.h(12): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 1>c:\users\matthias\documents\visual studio 2010\projects\beast\beast\block.h(15): error C2061: syntax error : identifier 'Level' 1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(29): error C2628: 'Block' followed by 'unsigned' is illegal (did you forget a ';'?) 1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(29): error C2628: 'Block' followed by 'int' is illegal (did you forget a ';'?) 1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(29): error C2347: '__w64' : can not be used with type '__w64 Block' 1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(29): error C2371: 'size_t' : redefinition; different basic types 1> c:\users\matthias\documents\visual studio 2010\projects\beast\beast\predefined c++ types (compiler internal)(19) : see declaration of 'size_t' 1>c:\users\matthias\documents\visual studio 2010\projects\beast\beast\level.h(16): error C2143: syntax error : missing ';' before '*' 1>c:\users\matthias\documents\visual studio 2010\projects\beast\beast\level.h(16): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 1>c:\users\matthias\documents\visual studio 2010\projects\beast\beast\level.h(16): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 1>c:\users\matthias\documents\visual studio 2010\projects\beast\beast\block.h(3): error C2011: 'Block' : 'class' type redefinition 1> c:\users\matthias\documents\visual studio 2010\projects\beast\beast\block.h(3) : see declaration of 'Block' 1> Block.cpp 1>c:\users\matthias\documents\visual studio 2010\projects\beast\beast\block.h(12): error C2143: syntax error : missing ';' before '*' 1>c:\users\matthias\documents\visual studio 2010\projects\beast\beast\block.h(12): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 1>c:\users\matthias\documents\visual studio 2010\projects\beast\beast\block.h(12): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 1>c:\users\matthias\documents\visual studio 2010\projects\beast\beast\block.h(15): error C2061: syntax error : identifier 'Level' 1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(29): error C2628: 'Block' followed by 'unsigned' is illegal (did you forget a ';'?) 1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(29): error C2628: 'Block' followed by 'int' is illegal (did you forget a ';'?) 1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(29): error C2347: '__w64' : can not be used with type '__w64 Block' 1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(29): error C2371: 'size_t' : redefinition; different basic types 1> c:\users\matthias\documents\visual studio 2010\projects\beast\beast\predefined c++ types (compiler internal)(19) : see declaration of 'size_t' 1>c:\users\matthias\documents\visual studio 2010\projects\beast\beast\level.h(16): error C2143: syntax error : missing ';' before '*' 1>c:\users\matthias\documents\visual studio 2010\projects\beast\beast\level.h(16): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 1>c:\users\matthias\documents\visual studio 2010\projects\beast\beast\level.h(16): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 1>c:\users\matthias\documents\visual studio 2010\projects\beast\beast\block.h(3): error C2011: 'Block' : 'class' type redefinition 1> c:\users\matthias\documents\visual studio 2010\projects\beast\beast\block.h(3) : see declaration of 'Block' 1> Generating Code... 1> 1>Build FAILED. 1> 1>Time Elapsed 00:00:04.06 ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== |
1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(29): error C2628: 'Block' followed by 'unsigned' is illegal (did you forget a ';'?) 1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(29): error C2628: 'Block' followed by 'int' is illegal (did you forget a ';'?) |