I am not sure what is wrong here as it works after I replace CString with std string but I am not able to reproduce same error in another small example.
@ admin I think this thread should be deleted as i am not able to reproduce it.
solved linking error with one function only LNK 2019