List:GUI Tools« Previous MessageNext Message »
From:Jorge del Conde Date:November 6 2002 3:05am
Subject:Re: MySQLCC-0.8.6 dies on FreeBSD
View as plain text  
Hi!

Ok, that apears to be because of a "not-so-smart" compiler :-)

I have already changed this in my local bk tree and what you should do is
make sure all the complaining functions look like:

QString CMySQL::mysqlInfo() const
{
  if (isConnected())
    return mysql_info(mysql);
  else
    return QString::null;
}

instead of

QString CMySQL::mysqlInfo() const
{
   return isConnected() ? mysql_info(mysql) : QString::null;
}

Regards,
Jorge
--
For technical support contracts, visit https://order.mysql.com/?ref=mjdc
   __  ___     ___ ____  __
  /  |/  /_ __/ __/ __ \/ /    Mr. Jorge del Conde <jorge@stripped>
 / /|_/ / // /\ \/ /_/ / /__   MySQL AB, Full-Time Developer
/_/  /_/\_, /___/\___\_\___/   Mexico City, Mexico
       <___/   www.mysql.com


----- Original Message -----
From: "Gerardo Enrique Paredes Mancia" <g.paredes@stripped>
To: <mycc@stripped>
Sent: Tuesday, November 05, 2002 6:56 PM
Subject: MySQLCC-0.8.6 dies on FreeBSD


> Hi, MySQLCC stil doesn't run on FreeBSD now it dies with this:
>
>
c++ -c -pipe -Wall -W -g -pthread -D_THREAD_SAFE  -DQT_DLL -DQT_THREAD_SUPPO
RT
> -Iinclude -Iinclude/CSqlEditor -I/usr/local/include/mysql
> -I/usr/local/include -I/usr/X11R6/include -I/usr/X11R6/include -Imoc/
> -I/usr/X11R6/mkspecs/default -o tmp/CMDIWindow.o src/CMDIWindow.cpp
>
c++ -c -pipe -Wall -W -g -pthread -D_THREAD_SAFE  -DQT_DLL -DQT_THREAD_SUPPO
RT
> -Iinclude -Iinclude/CSqlEditor -I/usr/local/include/mysql
> -I/usr/local/include -I/usr/X11R6/include -I/usr/X11R6/include -Imoc/
> -I/usr/X11R6/mkspecs/default -o tmp/CMySQL.o src/CMySQL.cpp
> src/CMySQL.cpp: In method `class QString CMySQL::mysqlInfo() const':
> src/CMySQL.cpp:475: ambiguous overload for `bool ? char * : const QString
&'
> src/CMySQL.cpp:475: candidates are: operator ?:(bool, QString, QString)
> <builtin>
> src/CMySQL.cpp:475:                 operator ?:(bool, const char *, const
char
> *) <builtin>
> src/CMySQL.cpp:476: warning: control reaches end of non-void function
> `CMySQL::mysqlInfo() const'
> src/CMySQL.cpp: In method `class QString CMySQL::mysqlGetHostInfo()
const':
> src/CMySQL.cpp:500: ambiguous overload for `bool ? char * : const QString
&'
> src/CMySQL.cpp:500: candidates are: operator ?:(bool, QString, QString)
> <builtin>
> src/CMySQL.cpp:500:                 operator ?:(bool, const char *, const
char
> *) <builtin>
> src/CMySQL.cpp:501: warning: control reaches end of non-void function
> `CMySQL::mysqlGetHostInfo() const'
> src/CMySQL.cpp: In method `class QString CMySQL::mysqlGetServerInfo()
const':
> src/CMySQL.cpp:525: ambiguous overload for `bool ? char * : const QString
&'
> src/CMySQL.cpp:525: candidates are: operator ?:(bool, QString, QString)
> <builtin>
> src/CMySQL.cpp:525:                 operator ?:(bool, const char *, const
char
> *) <builtin>
> src/CMySQL.cpp:526: warning: control reaches end of non-void function
> `CMySQL::mysqlGetServerInfo() const'
> gmake: *** [tmp/CMySQL.o] Error 1
>
> Gerardo
>
> ---------------------------------------------------------------------
> Before posting please check: http://www.mysql.com/products/mycc/index.html
> posting. To request this thread, email mycc-thread360@stripped
>
> To unsubscribe, send a message to the address shown in the
> List-Unsubscribe header of this message. If you cannot see it,
> email mycc-unsubscribe@stripped instead.
>


Thread
MySQLCC-0.8.6 dies on FreeBSDGerardo Enrique Paredes Mancia6 Nov
  • Re: MySQLCC-0.8.6 dies on FreeBSDJorge del Conde6 Nov
    • Re: MySQLCC-0.8.6 dies on FreeBSDGerardo Enrique Paredes Mancia6 Nov
    • Re: MySQLCC-0.8.6 dies on FreeBSDGerardo Enrique Paredes Mancia6 Nov
  • Re: MySQLCC-0.8.6 dies on FreeBSDJorge del Conde6 Nov
  • Re: MySQLCC-0.8.6 dies on FreeBSDJorge del Conde6 Nov