Log:
main.cpp: In function 'int main()':
main.cpp:6:8: error: no matching function for call to 'CItem::CItem()'
CItem Items;
^
main.cpp:6:8: note: candidates are:
In file included from Character.hpp:3:0,
from main.cpp:2:
Item.hpp:12:3: note: CItem::CItem(std::string, int, int, int)
CItem(string name, int atackMin, int atackMax, int defence);
^
Item.hpp:12:3: note: candidate expects 4 arguments, 0 provided
Item.hpp:4:7: note: CItem::CItem(const CItem&)
class CItem
^
Item.hpp:4:7: note: candidate expects 1 argument, 0 provided
C:\Users\User\Desktop\Baza\Makefile.win:28: recipe for target 'main.o' failed
mingw32-make.exe: *** [main.o] Error 1
Compilation failed after 0.72 seconds with errors
Your error tels you that you have not defined a constructor with no parameters. You have two options:
1. Define CItem(); in class CItem, something that does the same thing as CItem(string name, int atackMin, int atackMax, int defence);, but without requiring a name, an atackMin, and atacMax, and defence. The implementation would be easy, just assign name="", atackmin=0, and so on, then call the constructor with those values.
2. In main, line 7, use CItem Items("",0,0,0); or something that makes sense
P.S. You can also define a constructor that does nothing
Character.cpp: In member function 'int CCharacter::equipItems()':
Character.cpp:5:16: error: expected primary-expression before '.' token
p_rightHand = .AllItems[1];