multiple source files in a single apache module

2009-01-13 Thread wolfgang
Hi gurus, I made a sample apache module, mod_test, by /usr/local/apache/bin/apxs -g -n test. Now I want to make the mod_test call the following source ( actually, an add_test function ). --- my_test.h #ifndef _MY_TEST_H #define _MY_TEST_H 1 int add_test(int a, int b);

Re: multiple source files in a single apache module

2009-01-13 Thread Eric Covener
On Tue, Jan 13, 2009 at 3:48 PM, wolfgang wolfgang...@gmail.com wrote: Hi gurus, I made a sample apache module, mod_test, by /usr/local/apache/bin/apxs -g -n test. Now I want to make the mod_test call the following source ( actually, an add_test function ). httpd: Syntax error on line

Re: multiple source files in a single apache module

2009-01-13 Thread Sorin Manolache
On Tue, Jan 13, 2009 at 21:48, wolfgang wolfgang...@gmail.com wrote: Hi gurus, I made a sample apache module, mod_test, by /usr/local/apache/bin/apxs -g -n test. Now I want to make the mod_test call the following source ( actually, an add_test function ). --- my_test.h

Re: multiple source files in a single apache module

2009-01-13 Thread wolfgang
Hi, Sorin Thanks for quick reply. Here are mod_test.c and Makefile ** mod_test.c #include httpd.h #include http_config.h #include http_protocol.h #include ap_config.h #include my_test.h /* The sample content handler */ static int

Re: multiple source files in a single apache module

2009-01-13 Thread Sorin Manolache
On Tue, Jan 13, 2009 at 22:20, wolfgang wolfgang...@gmail.com wrote: Hi, Sorin Thanks for quick reply. Here are mod_test.c and Makefile ** mod_test.c #include httpd.h #include http_config.h #include http_protocol.h #include