locked
Steps to resolve LNK2019 error RRS feed

  • Question

  • Hello All,

    The project compiles correctly in VS 2010 but in VS 2012, I am getting the linker error as:

    error LNK2019: unresolved external symbol __imp__strcat_s referenced in function "int __cdecl strcat_s<512>(char (&)[512],char const *)" (??$strcat_s@$0CAA@@@YAHAAY0CAA@DPBD@Z)

    Thursday, May 16, 2013 11:01 AM

Answers

  • Hello All,

    The project compiles correctly in VS 2010 but in VS 2012, I am getting the linker error as:

    error LNK2019: unresolved external symbol __imp__strcat_s referenced in function "int __cdecl strcat_s<512>(char (&)[512],char const *)" (??$strcat_s@$0CAA@@@YAHAAY0CAA@DPBD@Z)

    It says that it cannot resolve strcat_s() symbol. try after including "string.h".

    Thanks, Renjith V R

    • Proposed as answer by Elegentin Xie Monday, May 20, 2013 2:28 AM
    • Marked as answer by Elegentin Xie Tuesday, May 21, 2013 7:05 AM
    Thursday, May 16, 2013 2:08 PM