I use MinGW, and can compile and link your code successfully after the correct in line 13 of HardwareStore.cpp.
I think maybe HardwareStore.cpp,line 12 should change to Shopper newShopper(fname,lname);
I tried that already but it doesn't work.
I just compile the program on Mac's terminal.
Maybe is the way i am compiling the project. is it possible to check if it's correct>
It is working ! thank you .
By the way. if a project contains 50 cpp files, will have to write a line with all the .o files coming from it to compile it?
if a project contains 50 cpp files, will have to write a line with all the .o files coming from it to compile it?
If you're going to insist on using the command line, yes. Or else you can use a series of command lines to build libraries that you then link together, but that's not really any less work overall.
This is why no-one sane uses the command-line to compile anything other than the smallest of projects. This is why we have Makefiles, and IDE's, and CMake, and any number of other build systems that are out there.
Just a small update.
If there is lot of files to be compiled, you can always use the "makefile" option on Linux, Unix or mac. I don't know if it works on Microsoft Ms-Dos, but, it s much better with "make" command . no need of an IDE