I've written a small program using separate compilation. My class is in a file called BankAccount.h and my implementation file is in a file called BankAccount.cpp but when I compile my program, it gives me an error "LINKER ERROR" and then list all my member functions and it says they are undefined. I've included the include directive #include "BankAccount.h" in both the main program and the implementation file. please assist.
@coder777, Won't the header files processed if they were included with the #include directive irrelevant of whether they were added to the project or not?
i have one question though. when you use separete compilation, do you have to compile all the files separetely or can u just compile only the main prgarm.