Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development
QtWorkbench plugin
mandrav:
--- Quote from: tiwag on April 11, 2006, 11:25:22 am ---is any way known to suppress these nasty warnings about inlined functions declared as dllimport ?
like this one:
--- Quote ---D:/qt412/include/QtGui/../../src/gui/painting/qrgb.h:57: warning: inline function `int qGray(QRgb)' declared as dllimport: attribute ignored
--- End quote ---
--- End quote ---
By strange coincidence, I stumbled upon this just today. Here's the strange thing:
If I compile with -Wall (all warnings, as usual), I don't get these warnings.
If I compile with -W (standard warnings), I get this :?
It's strange because "all warnings" should be a superset of "standard warnings only" ?!?
takeshimiya:
--- Quote from: mandrav on April 12, 2006, 10:50:10 pm ---By strange coincidence, I stumbled upon this just today. Here's the strange thing:
If I compile with -Wall (all warnings, as usual), I don't get these warnings.
If I compile with -W (standard warnings), I get this :?
It's strange because "all warnings" should be a superset of "standard warnings only" ?!?
--- End quote ---
I thought the same, but it seems it's not the case.
-W outputs different warnings (and usually more) than -Wall.
There is not any superset flag in GCC for all the warnings.
Note that -Wall does not imply all the other warnings, it's only a set of warnings.
The same is for -W, it's a set of warnings, not implied by any other flag.
And the other important flag is -pedantic, which is also not implied by any other flag.
It's more explained in the manual:
http://gcc.gnu.org/onlinedocs/gcc-4.1.0/gcc/Warning-Options.html
yop:
AFAIR, -Wall is the default setting when generating Makefiles with qmake. Also that dllimport thingy is "ifdefed" out when using qmake to generate gcc Makefiles. :?
briahn06:
Is there anyway to link moc and uic? I went to the QTWorkBench options, but only found intermediate folders. This made me think that moc and uic ran by default (whenever necessary), but that doesn't seem to be the case b/c I get errors that are quelled when I run uic and moc manually from cmd.
Thanks, Brian.
tiwag:
--- Quote from: mandrav on April 12, 2006, 10:50:10 pm ---
--- Quote from: tiwag on April 11, 2006, 11:25:22 am ---is any way known to suppress these nasty warnings about inlined functions declared as dllimport ?
like this one:
--- Quote ---D:/qt412/include/QtGui/../../src/gui/painting/qrgb.h:57: warning: inline function `int qGray(QRgb)' declared as dllimport: attribute ignored
--- End quote ---
--- End quote ---
By strange coincidence, I stumbled upon this just today. Here's the strange thing:
If I compile with -Wall (all warnings, as usual), I don't get these warnings.
If I compile with -W (standard warnings), I get this :?
It's strange because "all warnings" should be a superset of "standard warnings only" ?!?
--- End quote ---
what gcc version are you using ?
do you get these warnings from Qt or also from wxWidgets headers ?
when i compile any Qt 4.1.2 project i get these warnings regardless of -W or -Wall compiler switch
using gcc 3.4.5 (maybe i could step back to gcc 3.4.4 in order to test if it happens then too)
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version