Re: [reSIProcate] migrating from 0.9.0 to 1.0.2 (compiling problem)
It is split into two libraries now. You also need to compile against
rutil and link against librutil.a.
On 11/27/06, Felipe Louback <louback@xxxxxxxxx> wrote:
Hi,
I am updating my system to use the version 1.0.2. I was using version
0.9.0. I am trying to recompile a code that was working with
resiprocate 0.9.0 but now I am having problems. I have a redirect code
called redirect.cxx.
With resiprocate 0.9.0 I used to type to following line to compile my program:
#g++ -lresiprocate redirect.cxx
But I am in doubt in what should I pass in the command line to compile
the same program with resiprocate 1.0.2. I am typing:
# g++ -lresip redirect.cxx
or
# g++ -lrutil -lares -lssl -lcrypto -lpthread -lpopt -lresip redirect.cxx
And I am having the following output:
# g++ -lrutil -lares -lssl -lcrypto -lpthread -lpopt -lresip redirect.cxx
/tmp/ccbt3Kq4.o(.text+0x1a5): In function `SipProxy::SipProxy()':
: undefined reference to `resip::DnsStub::EmptyNameserverList'
/tmp/ccbt3Kq4.o(.text+0x1af): In function `SipProxy::SipProxy()':
: undefined reference to `resip::SipStack::SipStack(resip::Security*,
std::vector<resip::GenericIPAddress,
std::allocator<resip::GenericIPAddress> > const&,
resip::AsyncProcessHandler*, bool, void (*)(int, int, char const*,
int))'
/tmp/ccbt3Kq4.o(.text+0x1bc): In function `SipProxy::SipProxy()':
: undefined reference to `resip::Data::Empty'
/tmp/ccbt3Kq4.o(.text+0x1c1): In function `SipProxy::SipProxy()':
: undefined reference to `resip::Data::Empty'
/tmp/ccbt3Kq4.o(.text+0x1c6): In function `SipProxy::SipProxy()':
: undefined reference to `resip::Data::Empty'
/tmp/ccbt3Kq4.o(.text+0x1d9): In function `SipProxy::SipProxy()':
: undefined reference to
`resip::SipStack::addTransport(resip::TransportType, int,
resip::IpVersion, resip::StunSetting, resip::Data const&, resip::Data
const&, resip::Data const&, resip::SecurityTypes::SSLType)'
/tmp/ccbt3Kq4.o(.text+0x1ef): In function `SipProxy::SipProxy()':
: undefined reference to `resip::SipStack::~SipStack()'
/tmp/ccbt3Kq4.o(.text+0x21b): In function `SipProxy::SipProxy()':
: undefined reference to `resip::DnsStub::EmptyNameserverList'
/tmp/ccbt3Kq4.o(.text+0x225): In function `SipProxy::SipProxy()':
: undefined reference to `resip::SipStack::SipStack(resip::Security*,
std::vector<resip::GenericIPAddress,
std::allocator<resip::GenericIPAddress> > const&,
resip::AsyncProcessHandler*, bool, void (*)(int, int, char const*,
int))'
/tmp/ccbt3Kq4.o(.text+0x232): In function `SipProxy::SipProxy()':
: undefined reference to `resip::Data::Empty'
/tmp/ccbt3Kq4.o(.text+0x237): In function `SipProxy::SipProxy()':
: undefined reference to `resip::Data::Empty'
/tmp/ccbt3Kq4.o(.text+0x23c): In function `SipProxy::SipProxy()':
(and that goes on and on)
In my source code, I already updated the include files. Here are them:
#ifndef WIN32
#include <sys/time.h>
#include <unistd.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#endif
#include <sys/types.h>
#include <memory>
#include "resip/stack/Helper.hxx"
#include "resip/stack/SipMessage.hxx"
#include "resip/stack/Uri.hxx"
#include "resip/stack/SipStack.hxx"
#include "resip/stack/SdpContents.hxx"
#include "rutil/Logger.hxx"
#include "rutil/DnsUtil.hxx"
#include "rutil/ThreadIf.hxx"
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
What am I missing here? What should be the command line to recompile
the source code that before used to work with g++ -lresiprocate
redirect.cxx?
Thanks in advance,
Felipe
--
Master Student - Electrical Engineering Department
Computer Engineering and Telecommunications Research Group
Universidade Federal de Minas Gerais - Brazil
"Come to me, all you who are weary and burdened, and I will give you rest."
Matthews 11:28
_______________________________________________
resiprocate-devel mailing list
resiprocate-devel@xxxxxxxxxxxxxxxxxxxx
https://list.resiprocate.org/mailman/listinfo/resiprocate-devel