2008-05-12 14:45 dharmarth <[EMAIL PROTECTED]> napisaƂ(a):
>  gcc hello_world_apr.c -I"/usr/local/apr/include/apr-1"
>  -L"/usr/local/apr/lib" -lapr-1
>
>  But, it doesnt compile and gives following error trace.
>
>  In file included from hello_world_apr.c:2:
>  /usr/local/apr/include/apr-1/apr.h:273: error: expected '=', ',', ';', 'asm'
>  or '__attribute__' before 'apr_off_t'

Try:
gcc hello_world_apr.c `/usr/local/apr/bin/apr-1-config --cppflags`
-I/usr/local/apr/include/apr-1 -L/usr/local/apr/lib -lapr-1

Reply via email to