Link error - error LNK2001: unresolved external symbol __tcscat
Hi guys,
I am not a windows programmer. I am trying to invoke VLC from a windows application.
TCHAR* AppName = L"C:\\Program Files\\VideoLAN\\VLC\\vlc.exe";
TCHAR* temp = L"\"C:\\Program Files\\VideoLAN\\VLC\\vlc.exe \" --one-instance -L --loop -q --quiet --no-interact --no-qt-notification --no-qt-error-dialogs --no-embedded-video --qt-start-minimized --no-advanced --no-playlist-enqueue --width 800 --height 600 ";
TCHAR CmdLine[300] = {0x00};
_tcscpy( CmdLine, temp );
_tcscat( CmdLine, Gpath );
_tcscat( CmdLine, L"default.m3u" );
The program compiles fine, but fails during linking. It says that
error LNK2001: unresolved external symbol __tcscpy
error LNK2001: unresolved external symbol __tcscat
Which libraries do we need to include in the linker path?
Re: Link error - error LNK2001: unresolved external symbol __tcscat
ah, got it..
#include <tchar.h>
solved the linker error!