List:MySQL++« Previous MessageNext Message »
From:Chris Frey Date:November 17 2004 6:31pm
Subject:Re: Compile error under FC3
View as plain text  
This is because FC3 has gcc 3.4.x, which is more strict.  If you have suggestions
on how to fix it without breaking the API, they would be most welcome.

- Chris

On Tue, Nov 16, 2004 at 04:48:40PM +0100, cgifalco wrote:
> Hello mysql gurus,
> 
> I upgraded to Fedora Core 3 and now I can't compile  mysql++-1.7.21. I did
> [root@localhost mysql++-1.7.21]# ./configure --prefix=/usr/local 
> --includedir=/usr/local/include/mysql++
> and it looks OK.
> Then  was
> [root@localhost mysql++-1.7.21]# make
> and after some time:
> ...
> g++ -DHAVE_CONFIG_H -I. -I. -I.. -I. -I../lib -I/usr/include/mysql -g 
> -O2 -c connection.cc -MT connection.lo -MD -MP -MF 
> .deps/connection.TPlo  -fPIC -DPIC -o .libs/connection.lo
> In file included from ./manip.h:8,
>                  from ./vallist.h:4,
>                  from ./row.h:8,
>                  from ./result.h:11,
>                  from ./query.h:8,
>                  from connection.h:7,
>                  from connection.cc:4:
> ./sql_query.h: In member function `mysqlpp::SQLQuery& 
> mysqlpp::SQLQuery::update(const T&, const T&)':
> ./sql_query.h:241: error: `sql_use_compare' undeclared (first use this 
> function)
> ./sql_query.h:241: error: (Each undeclared identifier is reported only 
> once for each function it appears in.)
> In file included from connection.h:7,
>                  from connection.cc:4:
> ./query.h: In member function `void 
> mysqlpp::Query::storein_sequence(Seq&, mysqlpp::SQLQueryParms&, 
> mysqlpp::query_reset)':
> ./query.h:80: error: invalid use of undefined type `struct 
> mysqlpp::Connection'
> ./defs.h:28: error: forward declaration of `struct mysqlpp::Connection'
> ./query.h: In member function `void mysqlpp::Query::storein_set(Set&, 
> mysqlpp::SQLQueryParms&, mysqlpp::query_reset)':
> ./query.h:86: error: invalid use of undefined type `struct 
> mysqlpp::Connection'
> ./defs.h:28: error: forward declaration of `struct mysqlpp::Connection'
> ./query.h: In member function `void 
> mysqlpp::Query::storein_sequence(Sequence&, const char*)':
> ./query.h:91: error: invalid use of undefined type `struct 
> mysqlpp::Connection'
> ./defs.h:28: error: forward declaration of `struct mysqlpp::Connection'
> ./query.h: In member function `void mysqlpp::Query::storein_set(Set&, 
> const char*)':
> ./query.h:96: error: invalid use of undefined type `struct 
> mysqlpp::Connection'
> ./defs.h:28: error: forward declaration of `struct mysqlpp::Connection'
> ./query.h: In member function `void mysqlpp::Query::storein(T&, 
> mysqlpp::SQLQueryParms&, mysqlpp::query_reset)':
> ./query.h:102: error: invalid use of undefined type `struct 
> mysqlpp::Connection'
> ./defs.h:28: error: forward declaration of `struct mysqlpp::Connection'
> ./query.h: In member function `void mysqlpp::Query::storein(T&, const 
> char*)':
> ./query.h:107: error: invalid use of undefined type `struct 
> mysqlpp::Connection'
> ./defs.h:28: error: forward declaration of `struct mysqlpp::Connection'
> make[3]: *** [connection.lo] Error 1
> make[3]: Leaving directory `/home/it-sokol/mysql++/mysql++-1.7.21/lib'
> make[2]: *** [all] Error 2
> make[2]: Leaving directory `/home/it-sokol/mysql++/mysql++-1.7.21/lib'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/it-sokol/mysql++/mysql++-1.7.21'
> make: *** [all] Error 2
> 
> Under FC2 was all OK
> Thank you for a help
>  cgifalco
> 
> 
> 
> 
> -- 
> MySQL++ Mailing List
> For list archives: http://lists.mysql.com/plusplus
> To unsubscribe:    http://lists.mysql.com/plusplus?unsub=1
Thread
Compile error under FC3cgifalco17 Nov
  • Re: Compile error under FC3Chris Frey17 Nov
  • Re: Compile error under FC3Warren Young18 Nov
    • Re: Compile error under FC3cgifalco18 Nov
      • Re: Compile error under FC3Warren Young18 Nov
        • Re: Compile error under FC3cgifalco18 Nov
          • Re: Compile error under FC3Warren Young18 Nov
            • Re: Compile error under FC3cgifalco18 Nov
              • Re: Compile error under FC3cgifalco18 Nov
                • Re: Compile error under FC3Warren Young18 Nov
                  • Re: Compile error under FC3cgifalco19 Nov