User forums > Using Code::Blocks
Problem including header files in codeblocks QT4 Windows xp [Screenies Posted]
adityagameprogrammer:
some how enabling the "Full command line" option in compiler logging seems to have .. worked a bit.
the build log is as below
--- Code: ---Build started on: 23-02-2011 at 15:27.44
Build ended on: 23-02-2011 at 15:27.46
-------------- Build: Debug in qt_test ---------------
mingw32-g++.exe -Wall -g
-IC:\Qt\2010.05\qt\include
-IC:\Qt\2010.05\qt\include\QtGui
-IC:\Qt\2010.05\qt\include\QtCore
-IC:\Qt\2010.05\qt\include\Qt
-IC:\Qt\2010.05\qt\include\QtCore
-IC:\Qt\2010.05\qt\include\Qt
-IC:\Qt\2010.05\qt\include\QtGui
-c D:\Aditya\CodeBlocks\qt_test\main.cpp -o obj\Debug\main.o mingw32-g++.exe
-LC:\Qt\2010.05\qt\lib -o bin\Debug\qt_test.exe obj\Debug\main.o -lQtCore4 -lQtGui4
Output size is 180.75 KB
Process terminated with status 0 (0 minutes, 1 seconds)
0 errors, 0 warnings
--- End code ---
But i get a couple of redirection in between when i try to open a header file. in the sense it wont open directly but opens 2 in between files to finally get to the header file..
--- Code: ---#include <QThread>
--- End code ---
a file QThread opens up containing
--- Code: ---#include "qthread.h"
--- End code ---
and i click qthread.h again here i get a file qthread.h opening up
containing
--- Code: ---#include "../../src/corelib/thread/qthread.h"
--- End code ---
finally clicking qthread.h here opens up the required header file
--- Code: ---#ifndef QTHREAD_H
#define QTHREAD_H
#include <QtCore/qobject.h>
#include <limits.h>
QT_BEGIN_HEADER
// .......
--- End code ---
oBFusCATed:
--- Quote from: adityagameprogrammer on February 23, 2011, 11:17:01 am ---But i get a couple of redirection in between when i try to open a header file. in the sense it wont open directly but opens 2 in between files to finally get to the header file..
--- End quote ---
This is QT thing, no C::B problem...
adityagameprogrammer:
Thanks
is that the way it usually works? I had assumed it is to do with again with linking .. or some setting in C::B.
oBFusCATed:
It depends on the way the library is build and structured.
The QT guys have their reasons to use 3 headers ...
Navigation
[0] Message Index
[*] Previous page
Go to full version