rohc team mailing list archive
-
rohc team
-
Mailing list archive
-
Message #00294
Re: Error using the ROHC compressor
hi guys,
I am trying to integrate RoHC with my own application, I followed the steps
for installation and test run, I did followed some of the tips given in this
tread,
here is my output on
gcc -static -L./../rohc-1.3.1/lib -o rohc-test rohc-test.o -lrohc_decomp
-lrohc_comp -lrohc_common -lm
Error:
/usr/bin/ld: cannot find -lrohc_decomp
/usr/bin/ld: cannot find -lrohc_comp
/usr/bin/ld: cannot find -lrohc_common
collect2: ld returned 1 exit status
,
Am I missing something?
with kind regards,
Shaan
On Fri, Oct 16, 2009 at 8:27 AM, Didier Barvaux <
didier.barvaux@xxxxxxxxxxxxxxxxxxxx> wrote:
> Hi Josephine,
>
>
> > Thanks for your reply. Apologies for the delayed response; I hadn't
> > accessed my list mail in a while.
>
> No problem. Everyone is busy :)
>
>
> > When I compiled again there were fewer errors:
> > $ gcc -o packetforwardrohc packetforwardrohc.c -lrohc_decomp
> > -lrohc_comp -lrohc_common -lm -lnet -lpcap
> >
> > packetforwardrohc.c: In function ‘got_packet’:
> > packetforwardrohc.c:540: warning: passing argument 2 of
> > ‘rohc_compress’ discards qualifiers from pointer target type
> > /usr/lib/gcc/i486-linux-gnu/4.2.4/../../../../lib/crt1.o: In function
> > `_start':
> > (.text+0x18): undefined reference to `main'
> > collect2: ld returned 1 exit status
> >
> > > A simple program example for using the ROHC compression is
> > > attached to this message. You may build it with the following GCC
> > > command : $ gcc -o simple_rohc_program -g -Wall \
> > > -lrohc_common -lrohc_comp -lm \
> > > simple_rohc_program.c
> >
> > Thanks a lot, the simple program is running perfectly, and I'll use
> > it to help debug my program.
>
> Good news. Good luck with your program.
>
>
> Didier Barvaux
> Viveris Technologies
>
> _______________________________________________
> Mailing list: https://launchpad.net/~rohc
> Post to : rohc@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~rohc
> More help : https://help.launchpad.net/ListHelp
>
Follow ups
References