LNK2019 can't resolve

AssassinMaster 21 Reputation points
2021-06-03T09:16:37.1+00:00

Before I post the question, I have read the following document.

I am programming a VoIP client with Qt and one of PJProject/LinphoneSDK (I have tried both of them) by the VS2019 Community and Qt Creator. But commonly use MSVC2019. It always get the error LNK2019 whatever library and code I put in. Can someone provide a solution?

Project configuration->VC++ Directories->Include Directories/Libraries has been config correctly.
linker-tools-error-lnk2019

101984-lnk2019.png

101985-code-1.png

C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,904 questions
0 comments No comments
{count} votes

Accepted answer
  1. Viorel 121.3K Reputation points
    2021-06-03T10:12:37.767+00:00

    Probably you did not set some parameters, such as Linker -> Additional Dependencies, for all of configurations (which are displayed in dropdown lists of Project Properties.

    If you know which library files (.lib) should be added, you can also insert #pragma lines to any file, for example:

    #pragma comment( "lib", "somelibrary.lib" )

    Check if the product’s documentation contains detailed instructions.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.