PJSIP compilation error for windows

0

I'm trying to generate a PJSIP DLL file to use in my java application. Following the walkthrough of this link: link

The library compiles with this config_site.h:

#define PJ_EXPORT_SPECIFIER  __declspec(dllexport)
#define PJ_IMPORT_SPECIFIER  __declspec(dllimport)
#include <pj/config_site_sample.h> 

In the link it is spoken to create a project that generates a DLL and declare in the PJ_DLL and PJ_EXPORTING projects as macros.

First question: which projects do you need to declare these macros? Second question: how to declare PJ_DLL and PJ_EXPORTING as macros in visual studio 2015?

If I try to compile used this config_site.h: Compiling using Release-Dynamic

#define PJ_DLL 1
#define PJ_EXPORTING 1
#define PJ_EXPORT_SPECIFIER  __declspec(dllexport)
#define PJ_IMPORT_SPECIFIER  __declspec(dllimport)
#include <pj/config_site_sample.h> 

This error occurs:

Severity Code Description Project File Line Suppression State Error C2375 'cli_get_info': redefinition; different linkage pjsua pjsua_app_cli.c 163

Any ideas for fixing this error?

    
asked by anonymous 26.02.2018 / 13:39

0 answers