I downloaded and compiled PJSIP in Visual Studio 2013 .
Collected by opening *.sln in the main section of the downloaded library and clicking build in the Release-Static , without environment errors.

Then I found out that a bunch of different *.lib in different folders.

For the project, in essence, only the SIP parser is needed ( SDP - perhaps, well, forming the answer). Which of these *.lib and *.h connect to the project for future use?

UPDATE:

I tried in the test project to connect in the VC++ Directories->Include Directories all include folders from all projects in the library root and, accordingly, in the VC++ Directories->Library Directories all lib folders in all projects and the lib folder in the library root.

On the manual connected the following headers:

 #include <pjlib.h> #include <pjlib-util.h> #include <pjsip.h> #include <pjsip_ua.h> #include <pjsip_simple.h> #include <pjsua.h> #include <pjmedia.h> #include <pjmedia-codec.h> 

And then in main() called pj_init(); To which the linker shortly cursed:
Test_SIP.obj : error LNK2001: unresolved external symbol _pj_init

I connected all the libraries, but the link was not found ... Maybe now I’ll try to manually register all the libraries, but I think it will not bring success.

    1 answer 1

    The problem was solved by manual linking. Here is the stdafx.h file:

     #pragma once #include "targetver.h" #include <stdio.h> #include <tchar.h> #include <pjlib.h> #include <pjlib-util.h> #include <pjsip.h> #include <pjsip_ua.h> #include <pjsip_simple.h> #include <pjsua.h> #include <pjmedia.h> #include <pjmedia-codec.h> /*Эти библиотеки тоже нужны*/ #pragma comment (lib,"wsock32.lib") #pragma comment (lib,"ws2_32.lib") #pragma comment (lib,"ole32.lib") #pragma comment (lib,"dsound.lib") #pragma comment (lib,"libpjproject-i386-Win32-vc14-Release.lib") #pragma comment (lib,"pjlib-i386-Win32-vc14-Release.lib") #pragma comment (lib,"pjlib-util-i386-Win32-vc14-Release.lib") #pragma comment (lib,"pjmedia-audiodev-i386-Win32-vc14-Release.lib") #pragma comment (lib,"pjmedia-codec-i386-Win32-vc14-Release.lib") #pragma comment (lib,"pjmedia-i386-Win32-vc14-Release.lib") #pragma comment (lib,"pjmedia-videodev-i386-Win32-vc14-Release.lib") #pragma comment (lib,"pjnath-i386-Win32-vc14-Release.lib") #pragma comment (lib,"pjsip-core-i386-Win32-vc14-Release.lib") #pragma comment (lib,"pjsip-simple-i386-Win32-vc14-Release.lib") #pragma comment (lib,"pjsip-ua-i386-Win32-vc14-Release.lib") #pragma comment (lib,"pjsua2-lib-i386-Win32-vc14-Release.lib") #pragma comment (lib,"pjsua-lib-i386-Win32-vc14-Release.lib") 

    And also, for a smaller ... number of typed text in the project settings, all include and lib folders were merged into the includeAll and libAll shared folders.