This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: FW: How to figure out the gcc -dP output?
- From: Andi Hellmund <mail at andihellmund dot com>
- To: jay <uniojnqoifazy at gmail dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Sat, 25 Jul 2009 17:44:43 +0200
- Subject: Re: FW: How to figure out the gcc -dP output?
- References: <007001ca0c09$cdf47730$69dd6590$@com>
It seems that you only downloaded the library, but not the header files.
Depending on the Linux distro you are using, you could download the
development header files separately to the binaries/libraries, e.g. on
Ubuntu
andi@roma:~$ apt-cache search libosip
libosip2-3deb - Session Initiation Protocol (SIP) library
libosip2-dev - development files for the SIP library
Hope that helps,
Andi
jay wrote:
> Hello
> I have download libosip2-3.3.0 , but when I to compile sip_reg.c using "gcc
> sip_reg.c -o sip_reg -leXosip -L/usr/local/lib -I../../include/
> -DHAVE_STRUCT_TIMEVAL -losipparser2"
> ,I got some error msg :
> sip_reg.c:55:28: error: eXosip2/eXosip.h: No such file or directory
> sip_reg.c: In function 'main':
> sip_reg.c:336: error: 'osip_message_t' undeclared (first use in this
> function)
> sip_reg.c:336: error: (Each undeclared identifier is reported only once
> sip_reg.c:336: error: for each function it appears in.)
> sip_reg.c:336: error: 'reg' undeclared (first use in this function)
> sip_reg.c:366: error: 'eXosip_event_t' undeclared (first use in this
> function)
> sip_reg.c:366: error: 'event' undeclared (first use in this function)
> sip_reg.c:385: error: 'EXOSIP_REGISTRATION_NEW' undeclared (first use in
> this function)
> sip_reg.c:388: error: 'EXOSIP_REGISTRATION_SUCCESS' undeclared (first use in
> this function)
> sip_reg.c:391: error: 'EXOSIP_REGISTRATION_FAILURE' undeclared (first use in
> this function)
> sip_reg.c:394: error: 'EXOSIP_REGISTRATION_TERMINATED' undeclared (first use
> in this function)
>
>
>
> how can I overcome the problem ?
>
> cheers,
> jay
>
>
>