[CONC-105] typedef longlong collides with other projects definitions Created: 2014-09-16  Updated: 2014-09-17  Resolved: 2014-09-17

Status: Closed
Project: MariaDB Connector/C
Component/s: None
Affects Version/s: 2.0.0
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Brian Evans Assignee: Georg Richter
Resolution: Fixed Votes: 0
Labels: None
Environment:

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



 Comments   
Comment by Georg Richter [ 2014-09-17 ]

fixed in rev, 150

Generated at Thu Feb 08 03:02:55 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.