CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Mar 2000
    Location
    Oxford, UK.
    Posts
    352

    error LNK2019: unresolved external symbol

    I'm building a project, which is set to create a dll, and it's producing LNK2019 linking errors. ie it can't find dependencies. I thought that when you built a library you didn't need to provide it with dependencies, only applications require that.

  2. #2
    Join Date
    Oct 2006
    Location
    Sweden
    Posts
    3,654

    Re: error LNK2019: unresolved external symbol

    A dll isn't like a static library. It needs everything at linkage time (except other dlls, for them a lib is sufficient) just like an exe does.
    Debugging is twice as hard as writing the code in the first place.
    Therefore, if you write the code as cleverly as possible, you are, by
    definition, not smart enough to debug it.
    - Brian W. Kernighan

    To enhance your chance's of getting an answer be sure to read
    http://www.codeguru.com/forum/announ...nouncementid=6
    and http://www.codeguru.com/forum/showthread.php?t=366302 before posting

    Refresh your memory on formatting tags here
    http://www.codeguru.com/forum/misc.php?do=bbcode

    Get your free MS compiler here
    https://visualstudio.microsoft.com/vs

  3. #3
    Join Date
    Mar 2000
    Location
    Oxford, UK.
    Posts
    352

    Re: error LNK2019: unresolved external symbol

    Quote Originally Posted by S_M_A View Post
    A dll isn't like a static library. It needs everything at linkage time just like an exe does.
    I've deleted your caveat, otherwise thanks for the answer.

  4. #4
    Join Date
    Oct 2006
    Location
    Sweden
    Posts
    3,654

    Re: error LNK2019: unresolved external symbol

    Your welcome but why quote at all? What do that add to the thread?

    For me quoting is often a source of irritation. I more than often return to a post to fix spelling and other errors.
    Debugging is twice as hard as writing the code in the first place.
    Therefore, if you write the code as cleverly as possible, you are, by
    definition, not smart enough to debug it.
    - Brian W. Kernighan

    To enhance your chance's of getting an answer be sure to read
    http://www.codeguru.com/forum/announ...nouncementid=6
    and http://www.codeguru.com/forum/showthread.php?t=366302 before posting

    Refresh your memory on formatting tags here
    http://www.codeguru.com/forum/misc.php?do=bbcode

    Get your free MS compiler here
    https://visualstudio.microsoft.com/vs

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