User forums > Using Code::Blocks

Problem including header files in codeblocks QT4 Windows xp [Screenies Posted]

(1/2) > >>

adityagameprogrammer:
Hi,
      I have recently started using the code blocks IDE and have found it to be absolutely amazing. I am to work on QT on windows xp . so have set up the environment.  I am having trouble configuring the include files

adityagameprogrammer:
A major part of the problem as i understand is not configuring the library paths properly....

--- Code: ---#include <QApplication>
#include <QFont>
#include <QPushButton>

/*
// The Libraries wont open..
#include <QReadWriteLock>
#include <QWaitCondition>
#include <QStringList> // also for QString & QList
#include <QThread>
#include <QMutex>
#include <QDate>
#include <QSize>
#include <QPair>
#include <QMap>
#include <QSet>
*/

int main(int argc, char* argv[])
{
    QApplication app(argc, argv);

    QPushButton quit("Quit");

    quit.resize(75, 30);
    quit.setFont(QFont("Times", 18, QFont::Bold));

    QObject::connect(&quit, SIGNAL(clicked()), &app, SLOT(quit()));
    quit.show();

    return app.exec();
}

--- End code ---
This  program runs when there are only the default 3 libraries. 
the libraries are  present in

--- Quote ---C:\Qt\2010.05\qt\include\QtCore
C:\Qt\2010.05\qt\include\Qt
C:\Qt\2010.05\qt\include\QtGui

--- End quote ---
How do i set these libraries in the project....

oBFusCATed:
Project -> Build options -> Search Dirs -> Include for the include paths
Project -> Build options -> Search Dirs -> Libs for the libs paths

Take a look at the global variables, they are made for such things/setups

adityagameprogrammer:
I have done the same but the problem persists. I even tried  clicking on the header file and trying to open it through code blocks. but i get an error stating that the file is not found.  I have taken screen shots of the linker settings , search directories, global variables and the error. kindly let me know what i seem to be  missing.
linker settings

search directory settings

global variable settings

header file open error

oBFusCATed:
Read this: http://wiki.codeblocks.org/index.php?title=FAQ#Q:_How_do_I_troubleshoot_an_compiler_problem.3F

And post pasted logs, not screen shots (using code tags).

Navigation

[0] Message Index

[#] Next page

Go to full version