use apache apr ,but compile error

Alles, was den Apache betrifft, kann hier besprochen werden.

use apache apr ,but compile error

Postby liangwu2046 » 06. September 2007 14:52

The below is my program:


/////////////////////////////////////////
//hello.c
#include <apr_pools.h>
#include <apr_general.h>
int main(void)
{
apr_pool_t *p;
apr_initialize();
return 1;
}
/////////////////////////////////////////
gcc -I usr/local/apache2/include/ -L usr/local/apache2/lib/ hello.c -o hello
........
undefined reference apr_initialize()


As you see,the program is easy,but when I compile it ,it has a error,I don't why, who can tell me the reason?
liangwu2046
 
Posts: 6
Joined: 25. August 2007 04:30

Return to Apache

Who is online

Users browsing this forum: No registered users and 4 guests