Hi,
I am rather new user of codeblocks. The first remark I have to make is: Great Job!!!
To this nightly build I have a remark and a question.
The question is about the compiler warnings using MinGW. I installed QT Library version 4.1 and compiled the above micro project with the option "Enable standard compiler warnings [W]". I get 13 warnings, all from some QT Header files. A small QT Application with a main window and a few widgets creates easily hundreds of warnings, that means the warnings about my code are somewhere inbetween and get flooded among all the other warnings. The performance also suffers a lot.
So, one could say this is a QT Problem. On the other hand, QT is very successfull, so I assume these guys know what they do and they probably have their reasons to implement their stuff as it is. What I am looking for is a way to supress warnings that come out of QT Headers. Is there a compiler option or a code blocks mechanism to supress warnings from a certain directory?
The funny thing is, when I use the option to show all warnings instead of the standard ones, I don't get any warnings at all! So, there must be something wrong here...
I have installed this nightly build of codeblocks under Windows XP and created a QT Project using the template. As soon as I compile the main.cpp, the compiler complains about the QT Specific include files. The template usese $QTDIR to point to the correct include directories. This is an environment variable that I set correctly and it was working fine with the RC2. I realised, replacing $QTDIR with $(QTDIR) solves the problem. But this is quite boring to do using the IDE 10 times. Editing the code blocks project file with a text editor was easier, but ideally, one should not do that. Accesing the environment variable as $QTDIR is somewhat more sympathic to me, but there are probably reasons for this change. Maybe to make it more look like in a Makefile?
thanks,
Kagan