apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Arfrever Frehtes Taifersar Arahesis" <arfrever....@gmail.com>
Subject Re: Newbie question : compiling helloworld.c on ubuntu7.10
Date Mon, 12 May 2008 12:58:38 GMT
2008-05-12 14:45 dharmarth <dharmarth@gmail.com> 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
Mime
View raw message