1

I'm trying to use strcat 2 time in a row.
when I compile first 2 lines it's works, but when I added the third line I get:
"Error LNK2019 unresolved external symbol _srtcat referenced in function _StartUpFunc "

strcpy(msg2sent, "Hello");
strcat(msg2sent, temp_username);
srtcat(msg2sent, ", welcome to the session.");

what can be the reason? Im using VS15

john
  • 45
  • 10

2 Answers2

2

The third time, you spelled it srtcat. Correct to strcat.

9y7h0n
  • 326
  • 1
  • 8
2

You have a typo on the third line: srtcat instead of strcat.

chqrlie
  • 131,814
  • 10
  • 121
  • 189