CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 12 of 12

Threaded View

  1. #1
    Join Date
    Feb 2010
    Posts
    18

    Question LINK error: LNK2001: unresolved external symbol

    hi ,

    i am using MSDN library functions in my c file. I want to create a GUI using some of the following functions like
    CreateWindowEx
    ShowWindow
    AdjustWindowRect
    LoadCursor
    SetWindowPos
    CreatePen
    TextOut
    LineTo
    MoveToEx etc....

    but whn i build the project i'm getting link error while creating .obj file for all of the functions which ever i'm using.
    the errors are like:

    error LNK2001: unresolved external symbol __imp__GetMessageA@16
    win.obj : error LNK2001: unresolved external symbol __imp__SetTimer@16
    win.obj : error LNK2001: unresolved external symbol __imp__UpdateWindow@4
    win.obj : error LNK2001: unresolved external symbol __imp__ShowWindow@8
    win.obj : error LNK2001: unresolved external symbol __imp__SetWindowPos@28
    like this fr all of the functions which are used...




    if anyone cm across these type of problems plz help...
    Last edited by shri1609; May 2nd, 2010 at 11:45 PM.

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
  •  





Click Here to Expand Forum to Full Width

Featured