What is the full output of the error? It will give us some clues as to what the problem is.
Linker errors may not necessarily be related to the code. Usually because a function hasn't been written or is in some file that wasn't compiled. Basically the linker cannot find code for some function.