Linking C-API functions, when using pjsua2

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I found a problem in pjsua2/config.hpp. This file includes pjsua-lib/pjsua.h without an extern “C” declaration. This makes it impossible to call any of the C-API functions, if I otherwise use the pjsua2 API, because they are connected through this include-chain:

pjsua2.hpp

   -> ... (any of those)

      -> pjsua2/persistent.hpp

         -> pjsua2/types.hpp

            -> pjsua2/config.hpp

               -> pjsua-lib/pjsua.h

 

So I guess that’s a bug? The fix would be simple:

extern "C" {

#include <pjsua-lib/pjsua.h>

}

 

BR, Georg

_______________________________________________
Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@xxxxxxxxxxxxxxx
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux