dbTalk Databases Forums  

qt and mysql++

mailing.database.mysql-plusplus mailing.database.mysql-plusplus


Discuss qt and mysql++ in the mailing.database.mysql-plusplus forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
don thompson
 
Posts: n/a

Default qt and mysql++ - 03-24-2005 , 04:31 PM






I'm trying to incorporate a qt dialog with mysql++ and have encounterd
two issues. I've always used the automake tools starting with
Makefile.am with great results without too many headaches. qt likes
qmake, but I've almost migrated away to automake, since I use libtool
with mysql++. Any suggestions/comments about the use of these two make
methods? I'm still having problems with uic.

Second (probably really a core c++ question), I'm suddenly getting this
ambiguous uint conflict with qt and mysqlpp::uint. What gives? I'm not
using any uint's, the error is simply from the two includes.
If this is out of scope for this list please let me know.
Thanks,
Don


g++ -c -pipe -Wall -W -O2 -DQT_NO_DEBUG -DQT_SHARED
-I/usr/local/qt/mkspecs/default -I. -I/usr/include/mysql
-I/usr/local/mysql++-1.7.31/lib -I/usr/local/qt/include -o
gotocelldialog.o gotocelldialog.cpp
In file included from /usr/local/qt/include/qbutton.h:43,
from /usr/local/qt/include/qpushbutton.h:42,
from gotocelldialog.cpp:13:
/usr/local/qt/include/qkeysequence.h:71: error: parse error before `)' token
/usr/local/qt/include/qkeysequence.h:77: error: use of `uint' is ambiguous
/usr/include/sys/types.h:153: error: first declared as `typedef
unsigned int
uint' here
/usr/local/mysql++-1.7.31/lib/defs.h:27: error: also declared as `typedef
unsigned int mysqlpp::uint' here
/usr/local/qt/include/qkeysequence.h:77: error: `uint' denotes an ambiguous
type


--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw


Reply With Quote
  #2  
Old   
Chris Frey
 
Posts: n/a

Default Re: qt and mysql++ - 03-24-2005 , 06:14 PM






On Thu, Mar 24, 2005 at 05:31:30PM -0500, don thompson wrote:
Quote:
Second (probably really a core c++ question), I'm suddenly getting this
ambiguous uint conflict with qt and mysqlpp::uint. What gives? I'm not
using any uint's, the error is simply from the two includes.
If this is out of scope for this list please let me know.
Do you have 'using namespace mysqlpp;' in one of your headers somewhere?
I could see that causing this problem.

- Chris


--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw



Reply With Quote
  #3  
Old   
Dave Brooks
 
Posts: n/a

Default RE: qt and mysql++ - 03-25-2005 , 01:04 AM



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hey Don...

Quote:
Second (probably really a core c++ question), I'm suddenly
getting this
ambiguous uint conflict with qt and mysqlpp::uint. What
gives? I'm not
using any uint's, the error is simply from the two includes.
If this is out of scope for this list please let me know.
Thanks,
Don

It doesn't look like the conflict is between qt and mysqlpp:

Quote:
/usr/include/sys/types.h:153: error: first declared as `typedef
unsigned int uint' here
And

Quote:
/usr/local/mysql++-1.7.31/lib/defs.h:27: error: also
declared as `typedef unsigned int mysqlpp::uint' here

Specifically sys/types.h && defs.h, so most likely namespace
pollution. To test,
Instead of using "uint" in qkeysequence.h, try being specific:
mysqlpp::uint
And see if that alleviates the error. If so try taking some of your
namespace "using"
Statements out of the global namespace.

Dave

- -------------------------------------------
David Brooks
mailto:sallow (AT) twcny (DOT) rr.com

"Quidquid latine dictum sit, altum videtur"


-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 6.5.3 for non-commercial use <http://www.pgp.com>

iQA/AwUBQkO3406myMoV5dC/EQJO1wCgpe1s2TcX0vSgcj2IWrOghR5sjTYAnR3t
KJ6gP4NtUvrm2rawZJoy7XGs
=OnZH
-----END PGP SIGNATURE-----


--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.