Error 2 error LNK2019: unresolved external symbol "int __cdecl vsphere(int)" (?vsphere@@YAHH@Z) referenced in function _main c:\Users\pvs\documents\visual studio 2010\Projects\testee\testee\testee.obj testee
I'm fairly sure this type of error occurs when you haven't properly linked a library. You need to modify your liker settings; In visual studio this can be done in project properties, under linker. In general you have "Additional library directories" where you need to include all of the libraries, you also need to state which .lib files you will be using under the input tab, inside of the "Additional dependencies" section. You can alternatively include the code:
#pragma comment(lib, "LibraryFile.lib")
This only applies if you are using static libraries.