Question #234832 on rohc changed: https://answers.launchpad.net/rohc/+question/234832
manish shivare gave more information on the question: sorry for typo waiting for you reply thank you On Fri, Sep 6, 2013 at 8:01 PM, manish shivare < [email protected]> wrote: > Question #234832 on rohc changed: > https://answers.launchpad.net/rohc/+question/234832 > > Status: Needs information => Open > > manish shivare gave more information on the question: > this code also given compilation error. > this is log > manish@manish-HP-630-Notebook-PC:~$ cat > test_rohc_common.c << EOF > > #include <stdlib.h> > > #include <stdio.h> > > #include <rohc.h> > > > > int main(int argc, char **argv) > > { > > printf("ROHC version %s\n", rohc_version()); > > return 0; > > > > } > > EOF > manish@manish-HP-630-Notebook-PC:~$ cat test_rohc_common.c > #include <stdlib.h> > #include <stdio.h> > #include <rohc.h> > > int main(int argc, char **argv) > { > printf("ROHC version %s\n", rohc_version()); > return 0; > > } > manish@manish-HP-630-Notebook-PC:~$ gcc -o test_rohc_common -g -Wall > -I/usr/local/include -L/usr/local/lib/ -lrohc_common > test_rohc_common.c > /tmp/cc5H9Nty.o: In function `main': > /home/manish/test_rohc_common.c:7: undefined reference to `rohc_version' > collect2: error: ld returned 1 exit statu > > > i need to reinstall or any other solution? > please help me > i am waiting for you and sorry about bothering to you for my questions. > > > On Thu, Sep 5, 2013 at 11:21 PM, Didier Barvaux < > [email protected]> wrote: > > > Question #234832 on rohc changed: > > https://answers.launchpad.net/rohc/+question/234832 > > > > Status: Open => Needs information > > > > Didier Barvaux requested more information: > > Hello, > > > > To summarize: > > 1/ gcc correctly builds the .o object from sources, > > 2/ ld fails to link a small programs with the ROHC libraries, > > 3/ ld correctly finds the librohc*.so files, > > 4/ the librohc*.so files seem correct (ELF 32-bit, symbols are all > there). > > > > I don't understand why it fails... Let's try with a smaller program that > > uses only the librohc_common.so library: > > > > $ cat > test_rohc_common.c << EOF > > > #include <stdlib.h> > > > #include <stdio.h> > > > #include <rohc.h> > > > > > > int main(int argc, char **argv) > > > { > > > printf("ROHC version %s\n", rohc_version()); > > > return 0; > > > } > > > EOF > > $ cat test_rohc_common.c > > $ gcc -o test_rohc_common -g -Wall -I/usr/local/include \ > > -L/usr/local/lib/ -lrohc_common test_rohc_common.c > > $ file test_rohc_common > > > > Regards, > > Didier > > > > -- > > 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 : [email protected] > > 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. > > _______________________________________________ > Mailing list: https://launchpad.net/~rohc > Post to : [email protected] > 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. _______________________________________________ Mailing list: https://launchpad.net/~rohc Post to : [email protected] Unsubscribe : https://launchpad.net/~rohc More help : https://help.launchpad.net/ListHelp

