You need to link against the library that contains the two functions VerQueryValue and GetFileVersionInfo – the linker doesn’t know by default where to find them.
A quick search for the two functions on MSDN suggests that they’re both in the system library version.dll and the library you want to link against is version.lib. Just add that to the library list in the linker properties.