[Asterisk-Dev] Question about compiling a module for Asterisk with CPP stuff

Jeremy McNamara jj at nufone.net
Fri Feb 4 09:06:17 MST 2005


creslin at digium.com wrote:

>IIRC, C++ uses different symbol style than C.  You'll need to do an 
>
>extern "C" {
>}
>
>guard block on your API interaction functions.
>  
>


This if the extern "C" isn't defined, this is contributing to the 
problem.   You may also have problems with the way you linked the C++ code.

Why oh why couldn't you have written this in C, like a sane person would 
have done.


Jeremy McNamara



More information about the asterisk-dev mailing list