[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mysql-plusplus
Subject:    Re: Warnings when building a project under mingw that links to MySQL++
From:       Joel Fielder <joel () switchplane ! com>
Date:       2015-03-13 13:53:20
Message-ID: CAB0qmMCOBgqxjNS=iTYFQQTAdcpQjsySCJFpW1JQUjzXFC2Bzg () mail ! gmail ! com
[Download RAW message or body]


Hi there,

I don't think this is an issue my mysql++.

mysqlpp::Connection conn(false);

should be

mysqlpp::Connection conn;

Your code is trying to declare a member function called conn.

Joel

P.S. Looks like someone on Stack Overflow agrees with me.



On 13 March 2015 at 13:45, Patrick <pwnbusiness2012@centurylink.net> wrote:

> Sorry, that looks all trashed in the formatting.  Here is the link to the
> stackoverflow entry.
> 
> 
> http://stackoverflow.com/questions/29024827/make-mysqlppconnection-object-private-member-of-wxframe-class-object
>  
> ----- Original Message -----
> From: "Patrick" <pwnbusiness2012@centurylink.net>
> To: plusplus@lists.mysql.com
> Sent: Thursday, March 12, 2015 4:47:48 PM
> Subject: Warnings when building a project under mingw that links to MySQL++
> 
> Hello,
> 
> I am building a project that links to MySQL++ 3.2.1. I am using
> mingw32-make from the latest stable mingw-w64 build. G++ version is: 4.9.2.
> The MySQL++ library is built against MariaDB 10.0.16. The following
> warnings are displayed, but the project builds successfully and executes
> with no errors. I am able to access the database with no problems.
> 
> In file included from C:/MySQL++/3.2.1/include/mysql++.h:57:0,
> from C:\xxxxxxxx\xxxxxxxx.cpp:5:
> C:/MySQL++/3.2.1/include/cpool.h:42:22: warning: type attributes ignored
> after type is already defined [-Wattributes]
> class MYSQLPP_EXPORT Connection;
> ^
> In file included from C:/MySQL++/3.2.1/include/row.h:33:0,
> from C:/MySQL++/3.2.1/include/result.h:40,
> from C:/MySQL++/3.2.1/include/query.h:37,
> from C:/MySQL++/3.2.1/include/mysql++.h:58,
> from C:\xxxxxxxx\xxxxxxxx.cpp:5:
> C:/MySQL++/3.2.1/include/mystring.h:104:22: warning: type attributes
> ignored after type is already defined [-Wattributes]
> class MYSQLPP_EXPORT SQLTypeAdapter;
> ^
> In file included from C:/MySQL++/3.2.1/include/query.h:39:0,
> from C:/MySQL++/3.2.1/include/mysql++.h:58,
> from C:\xxxxxxxx\xxxxxxxx.cpp:5:
> C:/MySQL++/3.2.1/include/sqlstream.h:38:22: warning: type attributes
> ignored after type is already defined [-Wattributes]
> class MYSQLPP_EXPORT Connection;
> ^
> In file included from C:/MySQL++/3.2.1/include/query.h:41:0,
> from C:/MySQL++/3.2.1/include/mysql++.h:58,
> from C:\xxxxxxxx\xxxxxxxx.cpp:5:
> C:/MySQL++/3.2.1/include/transaction.h:41:22: warning: type attributes
> ignored after type is already defined [-Wattributes]
> class MYSQLPP_EXPORT Connection;
> ^
> In file included from C:/MySQL++/3.2.1/include/mysql++.h:58:0,
> from C:\xxxxxxxx\xxxxxxxx.cpp:5:
> C:/MySQL++/3.2.1/include/query.h:62:22: warning: type attributes ignored
> after type is already defined [-Wattributes]
> class MYSQLPP_EXPORT Connection;
> ^
> C:/MySQL++/3.2.1/include/query.h:63:22: warning: type attributes ignored
> after type is already defined [-Wattributes]
> class MYSQLPP_EXPORT Transaction;
> ^
> In file included from C:/MySQL++/3.2.1/include/mysql++.h:59:0,
> from C:\xxxxxxxx\xxxxxxxx.cpp:5:
> C:/MySQL++/3.2.1/include/scopedconnection.h:41:22: warning: type
> attributes ignored after type is already defined [-Wattributes]
> class MYSQLPP_EXPORT Connection;
> ^
> C:/MySQL++/3.2.1/include/scopedconnection.h:42:22: warning: type
> attributes ignored after type is already defined [-Wattributes]
> class MYSQLPP_EXPORT ConnectionPool;
> ^
> 
> I've looked around a little and it seems that the warnings are harmless,
> but I'm just wondering if there is a fix for this other than disabling
> warnings.
> 
> 
> --
> MySQL++ Mailing List
> For list archives: http://lists.mysql.com/plusplus
> To unsubscribe:    http://lists.mysql.com/plusplus
> 
> 


-- 
Joel Fielder

Director | Switchplane
01323 760 760 | joel@switchplane.com | www.switchplane.com

<http://www.switchplane.com/>

<https://twitter.com/Switchplane>  <https://www.facebook.com/switchplane>
<http://www.pinterest.com/switchplane/>
<http://www.linkedin.com/company/switchplane-ltd>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic