New question #248312 on rohc: https://answers.launchpad.net/rohc/+question/248312
Hello, I want to use this library in my c++ program. I followed steps to compile the example code in tutorial. $gcc -o simple_rohc_program.exe $(pkg-config rohc --cflags) simple_rohc_program.c $(pkg-config rohc --libs) -I ../ The above command is work for gcc, but when I use g++ with the same parameters to compile the example code, I get following error messages: /tmp/ccOVvx9H.o: In function `main': simple_rohc_program.c:(.text+0x5a): undefined reference to `rohc_alloc_compressor(int, int, int, int)' simple_rohc_program.c:(.text+0xb4): undefined reference to `rohc_comp_set_random_cb(rohc_comp*, int (*)(rohc_comp const*, void*), void*)' simple_rohc_program.c:(.text+0x108): undefined reference to `rohc_activate_profile(rohc_comp*, int)' simple_rohc_program.c:(.text+0x11f): undefined reference to `rohc_activate_profile(rohc_comp*, int)' simple_rohc_program.c:(.text+0x2ff): undefined reference to `rohc_compress2(rohc_comp*, unsigned char const*, unsigned int, unsigned char*, unsigned int, unsigned int*)' simple_rohc_program.c:(.text+0x3f8): undefined reference to `rohc_free_compressor(rohc_comp*)' simple_rohc_program.c:(.text+0x41a): undefined reference to `rohc_free_compressor(rohc_comp*)' collect2: ld returned 1 exit status How can I fix this problem? -- 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

