Compilation errors - home page example
Brought to you by:
gr84b8,
johnksterling
1 #include "apache_handler.h"
2
3 class TestHandler : public ApacheHandler
4 {
5 public:
6 TestHandler(void) { };
7 ~TestHandler(void) { };
8 int handler(ApacheRequestRec *pRequest);
9 };
10
11
12 int TestHandler::handler(ApacheRequestRec *pRequest)
13 {
14 pRequest->rprintf("\nThis handler is called for user %s", pRequest->user())
15 pRequest->rputs("\nLets Dump The Request!\n");
16 pRequest->dump();
17 return OK;
18 }
Line 6: ApacheHandler does not have a default constructor.
Line 14: It is missing the semi-colon.
O.S.: MacOS X 10.4.11
XCode 2.4
Mauricio Gomes
mgpensar at gmail.com
Logged In: YES
user_id=457654
Originator: NO
The website example is just to show you what a handler looks like. There are actual compiling and running handlers in the 'example' directory in svn.