マルチファイルC++プログラムをコンパイルしようとしていますが、次のエラーが発生します。
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
私のコード:main.cpp:https ://gist.github.com/3845822
include.cpp:https ://gist.github.com/3845825
include.h:https ://gist.github.com/3845827
(で動作することが確認されましたg++
)
編集:私はこれらのファイルをプロジェクトに入れていません、それらはすべて同じフォルダーにあり、私はコンパイルしていますmain.cpp