ok...i go to: "FAQ > How do I... (Level 2) > Multiple source files for one program (C++ example)"
im using dev-c++, can compile other single .cpp files perfectly fine. But...I cant get this program to run. It says:
program2.cpp: undefined reference to `myFunc(int &)'
program2.cpp: undefined reference to `MyClass::setData(int)'
program2.cpp: undefined reference to `MyClass::getData(void)'
in the linker output when i try to compile program2. I copy pasted the code.
Ive never worked on header files before (hence why im trying this program) so maybe im just doing something wrong there.
What the hell am i doing wrong?