← Back to team overview

rohc team mailing list archive

Re: [Question #234832]: compilation error

 

Question #234832 on rohc changed:
https://answers.launchpad.net/rohc/+question/234832

    Status: Answered => Open

manish shivare is still having a problem:
 extremely sorry for the my silly mistake i am providing my log file
according to your instruction
manish@manish-HP-630-Notebook-PC:~$ pkg-config rohc --modversion
1.6.1
manish@manish-HP-630-Notebook-PC:~$
PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/ pkg-config rohc --modversion
1.6.1
manish@manish-HP-630-Notebook-PC:~$ cd rohc-1.6.1/
manish@manish-HP-630-Notebook-PC:~/rohc-1.6.1$ cd examples/
manish@manish-HP-630-Notebook-PC:~/rohc-1.6.1/examples$ gcc -o
simple_rohc_program -g -Wall  $( PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/
pkg-config rohc --libs ) simple_rohc_program.c
/tmp/ccglCz67.o: In function `main':
/home/manish/rohc-1.6.1/examples/simple_rohc_program.c:91: undefined
reference to `rohc_alloc_compressor'
/home/manish/rohc-1.6.1/examples/simple_rohc_program.c:99: undefined
reference to `rohc_comp_set_random_cb'
/home/manish/rohc-1.6.1/examples/simple_rohc_program.c:111: undefined
reference to `rohc_activate_profile'
/home/manish/rohc-1.6.1/examples/simple_rohc_program.c:113: undefined
reference to `rohc_activate_profile'
/home/manish/rohc-1.6.1/examples/simple_rohc_program.c:168: undefined
reference to `rohc_compress2'
/home/manish/rohc-1.6.1/examples/simple_rohc_program.c:200: undefined
reference to `rohc_free_compressor'
/home/manish/rohc-1.6.1/examples/simple_rohc_program.c:211: undefined
reference to `rohc_free_compressor'
collect2: error: ld returned 1 exit status
manish@manish-HP-630-Notebook-PC:~/rohc-1.6.1/examples$



On Tue, Sep 3, 2013 at 1:31 PM, Didier Barvaux <
question234832@xxxxxxxxxxxxxxxxxxxxx> wrote:

> Question #234832 on rohc changed:
> https://answers.launchpad.net/rohc/+question/234832
>
>     Status: Open => Answered
>
> Didier Barvaux proposed the following answer:
> You mistyped my 2nd command. Whitespace position is important.
>
> Incorrect:   PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/pkg-config rohc --
> modversion
> Correct:      PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/ pkg-config rohc
> --modversion
>
> According to your locate command, the correct command should work and
> report 1.6.1. Then, you can do:
>   $ cd rohc-1.6.1/examples/
>   $ gcc -o simple_rohc_program -g -Wall \
>      $( PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/ pkg-config rohc --libs )
> \
>      simple_rohc_program.c
>
> --
> You received this question notification because you are a member of ROHC
> Team, which is an answer contact for rohc.
>
> _______________________________________________
> Mailing list: https://launchpad.net/~rohc
> Post to     : rohc@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~rohc
> More help   : https://help.launchpad.net/ListHelp
>

-- 
You received this question notification because you are a member of ROHC
Team, which is an answer contact for rohc.