I am to compile a multi-file C++ program, and have the following error;
Undefined symbols for architecture i386:
"included::printMSG()", referenced from:
_main in ccQwMj1l.o
ld: symbol(s) not[Finished in 0.3s with exit code 1] found for architecture i386
collect2: ld returned 1 exit status
My code:
main.cpp: gist.github.com/3845822
included.cpp: gist.github.com/3845825
included.h: gist.github.com/3845827
(confirmed to work with g++
)
EDIT: I am not putting these files in a project, they are just all in the same folder, and I’m compiling main.cpp