Hello Everybody
I seem to be getting lots of compiler warnings when trying to link against MySQL++ 3.0.9. GCC version 4.4.
I am trying to compile the following very basic code while using mysql++.h.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
|
#include <mysql++.h>
#include <iostream>
using namespace std;
using namespace mysqlpp;
int main(){
cout << "Hello World" << endl;
return 0;
}
|
I receive the following compiler warnings whenever I include mysql++.h regardless if I instantiate any classes from MySQL++ or not. Incidentally, the code always builds perfectly even if instantiating the MySQL++ classes.
Any idea why I should be getting these warnings?
Many thanks
Ishtar
Compiler Warnings:
In file included from ..\..\..\EXTERNAL++\MySQL++\include/mysql++.h:57,
from main.cpp:1:
..\..\..\EXTERNAL++\MySQL++\include/cpool.h:42: warning: type attributes ignored after type is already defined
In file included from ..\..\..\EXTERNAL++\MySQL++\include/row.h:33,
from ..\..\..\EXTERNAL++\MySQL++\include/result.h:40,
from ..\..\..\EXTERNAL++\MySQL++\include/query.h:36,
from ..\..\..\EXTERNAL++\MySQL++\include/mysql++.h:58,
from main.cpp:1:
..\..\..\EXTERNAL++\MySQL++\include/mystring.h:104: warning: type attributes ignored after type is already defined
In file included from ..\..\..\EXTERNAL++\MySQL++\include/mysql++.h:58,
from main.cpp:1:
..\..\..\EXTERNAL++\MySQL++\include/query.h:59: warning: type attributes ignored after type is already defined
In file included from ..\..\..\EXTERNAL++\MySQL++\include/mysql++.h:60,
from main.cpp:1:
..\..\..\EXTERNAL++\MySQL++\include/transaction.h:40: warning: type attributes ignored after type is already defined