← Back to team overview

rohc team mailing list archive

Re: [Question #234832]: compilation error


Question #234832 on rohc changed:

    Status: Open => Needs information

Didier Barvaux requested more information:

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;
> }
$ 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


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