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

Thread: LinkerError- unresolved external symbol

  1. #1
    Join Date
    Apr 2007
    Posts
    1

    LinkerError- unresolved external symbol

    Hi,
    When i tried to call a function, i received a linker error Unresolved external symbol.

    Example:

    sample.h

    void add(int x, int y) ;
    void sub(int a, int y);
    .
    .
    .

    sample.c

    .
    .
    .
    c = add(a,b);
    d = sub(a,b);
    .
    .
    .
    Note:
    Like this i used to develop my application, i included some 10 to 20 functions, and i dont have any problem with most of the function call except for only one function i have error ( for example in my above snip the add(a,b) function works fine but sub(a,b) shows linker error).

    I also checked, this two functions were defined or not. I found the definition was provided for all the functions. Please help me.

    Thanks
    V.Raja
    Last edited by RajaKavi; April 17th, 2007 at 12:02 AM.

  2. #2
    Join Date
    Jul 2001
    Location
    Otaki, New Zealand
    Posts
    303

    Re: LinkerError- unresolved external symbol

    Submit or attach your full code.

  3. #3
    Join Date
    Jul 2004
    Posts
    155

    Re: LinkerError- unresolved external symbol

    Hi ,
    Judging by what u have written , i assume that there is no body for sub function. In the .h file , u have given only prototypes.

    To get the correct answer , pls. post the code .

    Praseed Pai

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




On-Demand Webinars (sponsored)