← 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: Solved => Open

manish shivare is still having a problem:
thanks for reply your solution is very helpful for me, that solved my problem.
after this require any library path set becaue when i run your rohc_first_application.
it is give follwing output
$gcc -o rohc_first_application -g -Wall $(pkg-config rohc --libs) rohc_first_application.c
rohc_first_application.c:3:1: warning: data definition has no type or storage class [enabled by default]
rohc_first_application.c:3:1: warning: type defaults to ‘int’ in declaration of ‘comp’ [-Wimplicit-int]
rohc_first_application.c:3:8: warning: initialization makes integer from pointer without a cast [enabled by default]
rohc_first_application.c:3:1: error: initializer element is not constant
rohc_first_application.c:4:1: error: expected identifier or ‘(’ before ‘if’
rohc_first_application.c:11:1: warning: data definition has no type or storage class [enabled by default]
rohc_first_application.c:11:1: warning: type defaults to ‘int’ in declaration of ‘status’ [-Wimplicit-int]
rohc_first_application.c:11:1: error: conflicting types for ‘status’
rohc_first_application.c:9:6: note: previous declaration of ‘status’ was here
rohc_first_application.c:11:1: warning: implicit declaration of function ‘rohc_comp_enable_profiles’ [-Wimplicit-function-declaration]
rohc_first_application.c:18:36: error: ‘ROHC_PROFILE_TCP’ undeclared here (not in a function)
rohc_first_application.c:19:1: error: expected identifier or ‘(’ before ‘if’
rohc_first_application.c:25:15: error: variably modified ‘ip_packet’ at file scope
rohc_first_application.c:27:15: error: variably modified ‘rohc_packet’ at file scope
rohc_first_application.c:34:1: warning: data definition has no type or storage class [enabled by default]
rohc_first_application.c:34:1: warning: type defaults to ‘int’ in declaration of ‘ret’ [-Wimplicit-int]
rohc_first_application.c:36:22: warning: passing argument 1 of ‘rohc_compress2’ makes pointer from integer without a cast [enabled by default]
In file included from rohc_first_application.c:2:0:
/usr/local/include/rohc_comp.h:298:17: note: expected ‘struct rohc_comp * const’ but argument is of type ‘int’
rohc_first_application.c:36:22: error: initializer element is not constant
rohc_first_application.c:37:1: error: expected identifier or ‘(’ before ‘if’
rohc_first_application.c:42:1: warning: data definition has no type or storage class [enabled by default]
rohc_first_application.c:42:1: warning: type defaults to ‘int’ in declaration of ‘rohc_free_compressor’ [-Wimplicit-int]
rohc_first_application.c:42:1: warning: parameter names (without types) in function declaration [enabled by default]
rohc_first_application.c:42:1: error: conflicting types for ‘rohc_free_compressor’
In file included from rohc_first_application.c:2:0:
/usr/local/include/rohc_comp.h:277:18: note: previous declaration of ‘rohc_free_compressor’ was here

if require a set path please send me exact path becuse i am beginner for the ubuntu 12.10.
waiting for your reply
thank u

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