List:MySQL++« Previous MessageNext Message »
From:Jonathan Wakely Date:July 19 2011 11:43am
Subject:Re: undefined symbol: _ZN7mysqlpp10ConnectionD1Ev
View as plain text  
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:
> _ZN7mysqlpp10ConnectionD1Ev
>
>
> 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
Thread
undefined symbol: _ZN7mysqlpp10ConnectionD1EvKaplenko Vitaliy19 Jul
  • Re: undefined symbol: _ZN7mysqlpp10ConnectionD1EvMichael Radzewitz19 Jul
    • Re: undefined symbol: _ZN7mysqlpp10ConnectionD1EvJonathan Wakely19 Jul
      • Re: undefined symbol: _ZN7mysqlpp10ConnectionD1EvMichael Radzewitz19 Jul
  • Re: undefined symbol: _ZN7mysqlpp10ConnectionD1EvJonathan Wakely19 Jul
    • Re: undefined symbol: _ZN7mysqlpp10ConnectionD1EvKaplenko Vitaliy19 Jul
      • Re: undefined symbol: _ZN7mysqlpp10ConnectionD1EvJonathan Wakely19 Jul
        • Re: undefined symbol: _ZN7mysqlpp10ConnectionD1EvKaplenko Vitaliy19 Jul