Did you find a solution for this issue, I have the same. I think I know the cause, but since I'm not a familiar with developing on OS X nor Sublime Text 2 user I dont know how to fix it. I think it doesnt compile the .cpp files but only the header-files thus the implementations are undefined and the compilation fails.
writing this in terminal:
i.e g++ main.cpp test.h -o testbuild fails with same kind of error
g++ main.cpp test.cpp -o testbuild succeeds
I am using a freshly reinstalled macbook pro 10.7.5, new installed xcode with commandline toolset and fresh install of sublime no custom builds added. I really want a solution to this, any help is appreciated!
I just realised that I am stupid, and the issue is resolved by using a Makefile -_-