User forums > Help
Error compiling QT application
Sputnik:
Hi, I'm triying to compile a QT 4 application, but the compiler is returning the following error:
QtGui: No such file or directory
the line that throws that error is a simple include:
#include <QtGui>
I've read in the trolltech site that the including methodology has changed for the latest QT version, but I'm lost... of course, the file I'm trying to include exists... Maybe I have to configure something in code::blocks?
Thanks in advance
rickg22:
Make sure that you added the QT include directory to your compiler directories.
Sputnik:
Yes, the directories are included... if I include a normal .h file of QT it is included and the program compiles, that issue only happens with the include files without extension... I think these are new to QT4 and contains a lot of normal includes
rickg22:
Um... I'm not sure why this happens... try making sure the case of the included files is correct. In your include statement, there are some uppercase characters. Who knows? It might just work.
Wait! I have an idea to test. Instead of compiling, generate a makefile and try to run the makefile from outside codeblocks. I think that this isn't a codeblocks problem, but a compiler / config issue.
Sputnik:
mmmm... if I do it outside codeblocks, using make in the command line, the program compiles and runs correctly... any ideas of what's happening and what should I do?
Thx for your efforts! they're really appreciatted :)
Navigation
[0] Message Index
[#] Next page
Go to full version