Link error - error LNK2001: unresolved external symbol __tcscat
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: Link error - error LNK2001: unresolved external symbol __tcscat

  1. #1
    Join Date
    May 2009
    Posts
    2

    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?

  2. #2
    Join Date
    May 2009
    Posts
    2

    Talking 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
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center