I need help trying to figure out how to link my c++ files to organize my code but everything i do doesnt work. Can anyone help?
This is my code:
main.cpp:
you may want to look at manual page for g++ for additional flags. ( like std=c++11 -Wall ...)
You don't need to compile all 3 of them because to contents of myFunc.h will be copied and pasted to main.cpp and myFunc.cpp ( C++ requires prototypes for functions)