Troubleshooting Mac OS X Undefined symbols for architecture x86_64 If you have the error Undefined symbols for architecture x86_64 when compiling, apply the solution described here