Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
2.0.0
-
None
-
None
-
None
-
Gentoo
Description
While trying to build mysql++ ( http://tangentsoft.net/mysql++/ ) with MariaDB C Client, I received this error about a colliding typedef.
This error does not exist on Oracle's connector or server. Nor does it exist in MariaDB server.
x86_64-pc-linux-gnu-g++ -c -o test_sqlstream_sqlstream.o -Ilib -pthread -I/usr/include/mysql -O2 -pipe -march=native ./test/sqlstream.cpp
|
./test/qstream.cpp: In function ‘int main()’:
|
./test/qstream.cpp:48:48: error: reference to ‘longlong’ is ambiguous
|
sql_bigint(0) << sql_bigint_unsigned(0) << longlong(0) <<
|
^
|
In file included from lib/common.h:189:0,
|
from lib/connection.h:38,
|
from lib/mysql++.h:56,
|
from ./test/qstream.cpp:28:
|
/usr/include/mariadb/mysql.h:132:15: note: candidates are: typedef long int longlong
|
typedef long longlong;
|
^
|
In file included from lib/connection.h:38:0,
|
from lib/mysql++.h:56,
|
from ./test/qstream.cpp:28:
|
lib/common.h:159:19: note: typedef long long int mysqlpp::longlong
|
typedef long long longlong;
|
^
|
Makefile:902: recipe for target 'test_qstream_qstream.o' failed
|
make: *** [test_qstream_qstream.o] Error 1
|