pjproject icon indicating copy to clipboard operation
pjproject copied to clipboard

How to compile this project with g++ rather than gcc?

Open wshhja opened this issue 6 years ago • 5 comments

Is your feature request related to a problem? Please describe. Compile this project on a Linux like system, no tool-chain

Describe the solution you'd like Is there any configure option can be added to use g++ rather than gcc

Describe alternatives you've considered no

Additional context no

wshhja avatar Mar 04 '20 08:03 wshhja

you can try using CC=g++ ./configure to use g++. Don't think it would work though. any reason you want to use g++ instead gcc? we use g++ to build c++ code

trengginas avatar Mar 04 '20 11:03 trengginas

you can try using CC=g++ ./configure to use g++. Don't think it would work though. any reason you want to use g++ instead gcc? we use g++ to build c++ code

Yes, i have tried to using "export CC=g++",but it can not work though. I use the pjsip by c++,but it report error:undefine reference to XXXX. I tried to add extern "C"{} block also,however, it doesn't work.

wshhja avatar Mar 05 '20 07:03 wshhja

We use pjsua2 API (C++ code) as a wrapper to pjsua API (C code). You can see the Makefile as a reference.

Since you are using C++, consider using pjsua2 API instead?

trengginas avatar Mar 06 '20 04:03 trengginas

Thanks for help! Is there any configuration to avoid generating symbolic link?

wshhja avatar Mar 09 '20 02:03 wshhja

Currently issue is for bug report or feature request only. For question, please use any other means such as StackOverflow.

nanangizz avatar Mar 11 '20 05:03 nanangizz