First of all, I know this question is all over this site but I have looked at almost all of them and can\'t seem to find out what is wrong. This is in VS 2012. Thanks.
Add runtimeobject.lib to the linker Additional Dependencies (in the project property page, under Linker->Input).
runtimeobject.lib