-
May 13th, 2009, 12:43 AM
#1
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?
-
May 13th, 2009, 01:12 AM
#2
Re: Link error - error LNK2001: unresolved external symbol __tcscat
ah, got it..
#include <tchar.h>
solved the linker error!
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|