Ok, I'm new to c++ so I'm trying to understand what information I can get from the error message.
Here is the error message
Undefined symbols for architecture x86_64: "PieceClothing::PieceClothing(int)", referenced from: ClothesInventory::getPieceOfClothing(long) in ClothesInventory.o ClothesInventory::insertIntocloset(std::basic_string, std::allocator >)in ClothesInventory.o "PieceClothing::PieceClothing()", referenced from: ClothesInventory::ClothesInventory()in ClothesInventory.o ClothesInventory::ClothesInventory(std::basic_string, std::allocator >)in ClothesInventory.o std::map, std::allocator > >::operator[](long const&)in ClothesInventory.o ld: symbol(s) not found for architecture x86_64 collect2: ld returned 1 exit status
Here is what I understand:
- There are two errors;
- One that has to do with getPieceOfClothing and insertIntocloset;
- Other in the the constructors maybe about a map and/or iterator I have there.
Just to clarify, I'm not attaching the code because the point of the question is to understand all the information I can get just from the message.
Thanks for any help.
PieceClothing
constructors - have you definitely implemented those and are you definitely linking those in? – Rup