Hi all,

I am currently developing a small quick'n dirty SIP (Session Initiation Protocol) parser. Its task is to read a file (or command-line argument) with a SIP requst and parse it using the sofia-sip library. It should exit either with "1" on parsing failure or "0" on parsing success.

I am a newbie regarding c++ and have taken the code snipplet from here: http://thread.gmane.org/gmane.comp.t...660/focus=2662 resulting in this source code:

#include <iostream>
#include <stdio.h>  
#include <sofia-sip/msg.h>  
#include <sofia-sip/msg_parser.h>
#include <sofia-sip/msg_mclass.h>

int main()
  char *msg_data = "...";
  msg_t* msg = msg_make (sip_default_mclass(), 0, msg_data,sizeof (msg_data));
  if (!msg) {
    fprintf(stderr, "Impossible to parse message\n");
    return 1;
    fprintf(stderr, "Successful message parsing\n");
    return 0;
When I try to compile the code using
g++ -o parser -I/usr/include/sofia-sip-1.12 parser.cpp
, I get the following failure:

parser.cpp:10:45: error: ‘sip_default_mclass’ was not declared in this scope
Ehm, now I am completely stucked and I would appreciate any help,

thx and br