On 19 July 2011 12:29, Kaplenko Vitaliy wrote:
> If after that run command:
> # httpd --help
> httpd: Syntax error on line 204 of /etc/httpd/conf/httpd.conf: Cannot load
> /etc/httpd/modules/mod_helloworld.so into server:
> /etc/httpd/modules/mod_helloworld.so: undefined symbol:
> mod_helloworld.c is an Apache Module, a simple content generator.
> It was published on page 133 in
> The Apache Modules Book: Application Development with Apache
> by Nick Kew
> Publisher: Prentice Hall
> Pub Date: January 26, 2007
> Print ISBN-10: 0-13-240967-4
> Print ISBN-13: 978-0-13-240967-4
> Pages: 592
> In the mod_helloworld.c Rows 7 and 23 were added for compile
> .c and .cpp files together.
> Help me solve this problem, please.
You haven't linked to the mysql++ library
Add -lmysqlpp to the link command for mod_helloworld.so