Re: [Qt-creator] Adding header files

2010-07-23 Thread Jothy
O.K Guys,

Ending this thread forever!

Apologies for the disturbance.

Jothy

On Fri, Jul 23, 2010 at 2:02 PM, Carter, Nathan  wrote:

> This is an awful lot of Qt Creator list spam (at least 10 messages just
> last night alone, doubling the typical list volume just on this one issue)
> about basic issues of how to use a C++ compiler on Windows.  Please try to
> stay on topic, or we will have people leaving the list because it is sending
> them what they consider to be copious spam irrelevant to their daily work.
>
> For questions about how to set up a .pro file, use qt-interest.  For
> questions about how to use boost, use one of their lists.  For questions
> about how #include works, see a basic C/C++ website or tutorial.  For
> questions about how to pass -I commands to a compiler, see the man page for
> the compiler.
>
> None of this is about Qt Creator.  I am subscribed to this list and not to
> any of those other ones because I am not interested in discussing or
> listening to these issues.  Lists have topics for that very reason.  This is
> basic Internet etiquette.
>
> Nathan
>
> On Jul 23, 2010, at 8:34 AM, "Alex T."  wrote:
>
> Matthias, -I is -I flag for include dirs which is passed to the compiler.
> It looks confusing because of the font.
>
> Jothy, about the difference between #include "" and #include <>.  The first
> one will tell that the header should be searched in the path relative to the
> currents source file location. The second - that the header should be looked
> for in the directories listed via -I. Note, such kind of questions are not
> specific to qt creator, that's why they should not be asked in this mailing
> list.
>
>
>
>
> On 23 July 2010 15:24, Matthias Pospiech < 
> matthias.pospi...@gmx.de> wrote:
>
>> André Pönitz schrieb:
>> > On Friday 23 July 2010 13:45:33 ext Jothy wrote:
>> >
>> >> I simply added INCLUDEPATH += -I C:\boost
>> >>
>> >> Now its able to find all the header files except file path starting
>> with boost/
>> >>
>> >
>> > Drop the '-I' from INCLUDEPATH
>> >
>> What does the -I switch mean anyway?
>>
>> Matthias
>>
>> ___
>> Qt-creator mailing list
>>  Qt-creator@trolltech.com
>>  
>> http://lists.trolltech.com/mailman/listinfo/qt-creator
>>
>
> 
>
>
> ___
> Qt-creator mailing list
> Qt-creator@trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-creator
>
>
___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


Re: [Qt-creator] Adding header files

2010-07-23 Thread Carter, Nathan
This is an awful lot of Qt Creator list spam (at least 10 messages just last 
night alone, doubling the typical list volume just on this one issue) about 
basic issues of how to use a C++ compiler on Windows.  Please try to stay on 
topic, or we will have people leaving the list because it is sending them what 
they consider to be copious spam irrelevant to their daily work.

For questions about how to set up a .pro file, use qt-interest.  For questions 
about how to use boost, use one of their lists.  For questions about how 
#include works, see a basic C/C++ website or tutorial.  For questions about how 
to pass -I commands to a compiler, see the man page for the compiler.

None of this is about Qt Creator.  I am subscribed to this list and not to any 
of those other ones because I am not interested in discussing or listening to 
these issues.  Lists have topics for that very reason.  This is basic Internet 
etiquette.

Nathan

On Jul 23, 2010, at 8:34 AM, "Alex T." 
mailto:diox...@gmail.com>> wrote:

Matthias, -I is -I flag for include dirs which is passed to the compiler. It 
looks confusing because of the font.

Jothy, about the difference between #include "" and #include <>.  The first one 
will tell that the header should be searched in the path relative to the 
currents source file location. The second - that the header should be looked 
for in the directories listed via -I. Note, such kind of questions are not 
specific to qt creator, that's why they should not be asked in this mailing 
list.



On 23 July 2010 15:24, Matthias Pospiech 
<matthias.pospi...@gmx.de>
 wrote:
André Pönitz schrieb:
> On Friday 23 July 2010 13:45:33 ext Jothy wrote:
>
>> I simply added INCLUDEPATH += -I C:\boost
>>
>> Now its able to find all the header files except file path starting with 
>> boost/
>>
>
> Drop the '-I' from INCLUDEPATH
>
What does the -I switch mean anyway?

Matthias

___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


Re: [Qt-creator] Adding header files

2010-07-23 Thread Alex T.
Matthias, -I is -I flag for include dirs which is passed to the compiler. It
looks confusing because of the font.

Jothy, about the difference between #include "" and #include <>.  The first
one will tell that the header should be searched in the path relative to the
currents source file location. The second - that the header should be looked
for in the directories listed via -I. Note, such kind of questions are not
specific to qt creator, that's why they should not be asked in this mailing
list.




On 23 July 2010 15:24, Matthias Pospiech  wrote:

> André Pönitz schrieb:
> > On Friday 23 July 2010 13:45:33 ext Jothy wrote:
> >
> >> I simply added INCLUDEPATH += -I C:\boost
> >>
> >> Now its able to find all the header files except file path starting with
> boost/
> >>
> >
> > Drop the '-I' from INCLUDEPATH
> >
> What does the -I switch mean anyway?
>
> Matthias
>
> ___
> Qt-creator mailing list
> Qt-creator@trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-creator
>
___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


Re: [Qt-creator] Adding header files

2010-07-23 Thread Matthias Pospiech
André Pönitz schrieb:
> On Friday 23 July 2010 13:45:33 ext Jothy wrote:
>   
>> I simply added INCLUDEPATH += -I C:\boost
>>
>> Now its able to find all the header files except file path starting with 
>> boost/
>> 
>
> Drop the '-I' from INCLUDEPATH
>   
What does the -I switch mean anyway?

Matthias

___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


Re: [Qt-creator] Adding header files

2010-07-23 Thread Jothy
Thanks guys!

The problem is  almost fixed.

I copied the boost folder to a new one C:\BoostLibs\boost

and added

*INCLUDEPATH += -I C:\BoostLibs\

*

*INCLUDEPATH += -I C:\BoostLibs\boost

now works

suppose if I have 

how to acess the functions from array alone without using std::

and what's the difference between #include"" and #include<>


Thanks

Jothy
*




On Fri, Jul 23, 2010 at 1:08 PM, André Pönitz wrote:

> On Friday 23 July 2010 13:45:33 ext Jothy wrote:
> > I simply added INCLUDEPATH += -I C:\boost
> >
> > Now its able to find all the header files except file path starting with
> boost/
>
> Drop the '-I' from INCLUDEPATH
>
> > Should I add C:\boost to system path?
>
> No.
>
> Andre'
> ___
> Qt-creator mailing list
> Qt-creator@trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-creator
>
___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


Re: [Qt-creator] Adding header files

2010-07-23 Thread André Pönitz
On Friday 23 July 2010 13:45:33 ext Jothy wrote:
> I simply added INCLUDEPATH += -I C:\boost
> 
> Now its able to find all the header files except file path starting with 
> boost/

Drop the '-I' from INCLUDEPATH

> Should I add C:\boost to system path?

No.

Andre'
___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


Re: [Qt-creator] Adding header files

2010-07-23 Thread Alex T.
You need to learn how the compiler looks for headers. In you case, you
specified -IC:\boost, now when you do #include  the compiler
will look for it in all directories passed to it via -I switch. If you
#include  it will not find it, because view.hpp is in
C:\boos\multi_array. So, you need to write

#include 

On 23 July 2010 14:45, Jothy  wrote:

> I simply added INCLUDEPATH += -I C:\boost
>
> Now its able to find all the header files except file path starting with
> boost/
>
> Should I add C:\boost to system path?
>
> Thanks,
>
> Jothy
>
>
>
> On Fri, Jul 23, 2010 at 12:39 PM, André Pönitz wrote:
>
>> On Friday 23 July 2010 11:53:31 ext Jothy wrote:
>> > Hi Guys,
>> >
>> > I am trying to use boost header files with a simple Qt project in Qt
>> creator. By right clicking "Add existing files" in the headers (in the
>> project files view), I added few boost headers.
>> >
>> > And the pro file look like this
>> >
>> > QT += core gui
>> >
>> > TARGET = untitled8
>> >
>> > TEMPLATE = app
>> >
>> > SOURCES += main.cpp\
>> >
>> > widget.cpp
>> >
>> >
>> > HEADERS  += widget.h \
>> >
>> > ../../Boost/multi_array/view.hpp \
>> > [..]
>> > FORMS+= widget.ui
>> >
>> >
>> > Now, how should I add in the widget.cpp file. It does not show any of
>> the hpp files after typing #include<, I even tried #include>
>> You should not list the boost headers in HEADERS, but add a suitable path
>> to INCLUDEPATH, like
>>
>>  INCLUDEPATH += $$PWD/../../Boost
>>
>> or
>>  INCLUDEPATH += $$PWD/../..
>>
>> Andre'
>> ___
>> Qt-creator mailing list
>> Qt-creator@trolltech.com
>> http://lists.trolltech.com/mailman/listinfo/qt-creator
>>
>
>
> ___
> Qt-creator mailing list
> Qt-creator@trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-creator
>
>
___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


Re: [Qt-creator] Adding header files

2010-07-23 Thread Jothy
I simply added INCLUDEPATH += -I C:\boost

Now its able to find all the header files except file path starting with
boost/

Should I add C:\boost to system path?

Thanks,

Jothy


On Fri, Jul 23, 2010 at 12:39 PM, André Pönitz wrote:

> On Friday 23 July 2010 11:53:31 ext Jothy wrote:
> > Hi Guys,
> >
> > I am trying to use boost header files with a simple Qt project in Qt
> creator. By right clicking "Add existing files" in the headers (in the
> project files view), I added few boost headers.
> >
> > And the pro file look like this
> >
> > QT += core gui
> >
> > TARGET = untitled8
> >
> > TEMPLATE = app
> >
> > SOURCES += main.cpp\
> >
> > widget.cpp
> >
> >
> > HEADERS  += widget.h \
> >
> > ../../Boost/multi_array/view.hpp \
> > [..]
> > FORMS+= widget.ui
> >
> >
> > Now, how should I add in the widget.cpp file. It does not show any of the
> hpp files after typing #include<, I even tried #include
> You should not list the boost headers in HEADERS, but add a suitable path
> to INCLUDEPATH, like
>
>  INCLUDEPATH += $$PWD/../../Boost
>
> or
>  INCLUDEPATH += $$PWD/../..
>
> Andre'
> ___
> Qt-creator mailing list
> Qt-creator@trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-creator
>
___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


Re: [Qt-creator] Adding header files

2010-07-23 Thread André Pönitz
On Friday 23 July 2010 11:53:31 ext Jothy wrote:
> Hi Guys,
> 
> I am trying to use boost header files with a simple Qt project in Qt creator. 
> By right clicking "Add existing files" in the headers (in the project files 
> view), I added few boost headers.
> 
> And the pro file look like this
> 
> QT += core gui
> 
> TARGET = untitled8
> 
> TEMPLATE = app
> 
> SOURCES += main.cpp\
> 
> widget.cpp
> 
> 
> HEADERS  += widget.h \
> 
> ../../Boost/multi_array/view.hpp \
> [..]
> FORMS+= widget.ui
> 
> 
> Now, how should I add in the widget.cpp file. It does not show any of the hpp 
> files after typing #include<, I even tried #includehttp://lists.trolltech.com/mailman/listinfo/qt-creator


Re: [Qt-creator] Adding header files

2010-07-23 Thread Danny Price
If you're a beginner then working with boost may be a bit ambitious.

Library and system headers are added to the include path so that you can do
stuff like this:

#include 

The include path tells the compiler where it can find the directory that
contains boost/xxx.

You do not add the files to your project.

Also a lot of the boost classes DO require libraries to be linked (regex for
example).

On Fri, Jul 23, 2010 at 12:13 PM, Jothy  wrote:

> I am not creating any make file for my project.
>
> If so how to do that in Qt Creator. I don't want to build corss-platform
> apps. If it runs on winodws thats fine.
>
> Thanks,
>
> Jothy
>
> On Fri, Jul 23, 2010 at 12:10 PM, Alex T.  wrote:
>
>> No, I'm talking about makefiles for your own project.
>>
>>
>> On 23 July 2010 14:01, Jothy  wrote:
>>
>>> No, in the boost website they say, we don't need to build them, we just
>>> need to include them.
>>>
>>> I am just a beginner in c++ and don't know many of the concepts.
>>>
>>> But, I able to build simple applications with vtk!
>>>
>>> Thanks,
>>>
>>> Jothy
>>>
>>>
>>> On Fri, Jul 23, 2010 at 11:54 AM, Alex T.  wrote:
>>>
 Did you regenerate Makefiles?


 On 23 July 2010 13:51, Jothy  wrote:

> Sorry for the mistake!
>
> Now set it to INCLUDEPATH += -IC:\Boost\multi_array
>
> it says view.hpp: No such file or dir
>
> Thanks,
>
> Jothy
>
>
> On Fri, Jul 23, 2010 at 11:47 AM, Alex T.  wrote:
>
>> -L is the flag that refers to libraries, and has to be passed to vars
>> as LIBS. the same with -l (lower el).
>>
>> -I (capital i)refers to includes.
>>
>> So this is not a good idea to pass -L to INCLUDEPATH. You need to
>> double check ytour paths.
>>
>>
>> On 23 July 2010 13:44, Jothy  wrote:
>>
>>> No, it says no such file or directory.
>>>
>>> I add INCLUDEPATH += -LC:\Boost\multi_array -lview
>>>
>>> Thanks,
>>>
>>> Jothy
>>>
>>>
>>> On Fri, Jul 23, 2010 at 11:35 AM, Alex T.  wrote:
>>>
 I don't think you need to add boost headers to HEADERS variable.
 Instead, add the path to boost headers to INCLUDEPATH variable, e.g.

 INCLUDEPATH += -I/home/user/my_unpacked_boost_headers/multi_array

 Note that is capital i before the path.

 After that just #include  in your sources.

 On 23 July 2010 12:53, Jothy  wrote:

> Hi Guys,
>
> I am trying to use boost header files with a simple Qt project in
> Qt creator. By right clicking "Add existing files" in the headers (in 
> the
> project files view), I added few boost headers.
>
> And the pro file look like this
>
> *QT += core gui *
>
> *TARGET = untitled8*
>
> *TEMPLATE = app*
>
> *SOURCES += main.cpp\*
>
> *widget.cpp
>
> *
>
> *HEADERS  += widget.h \*
>
> *../../Boost/multi_array/view.hpp \*
>
> *../../Boost/multi_array/types.hpp \*
>
> *../../Boost/multi_array/subarray.hpp \*
>
> *../../Boost/multi_array/storage_order.hpp \*
>
> *../../Boost/multi_array/range_list.hpp \*
>
> *../../Boost/multi_array/multi_array_ref.hpp \*
>
> *../../Boost/multi_array/iterator.hpp \*
>
> *../../Boost/multi_array/index_range.hpp \*
>
> *../../Boost/multi_array/index_gen.hpp \*
>
> *../../Boost/multi_array/extent_range.hpp \*
>
> *../../Boost/multi_array/extent_gen.hpp \*
>
> *../../Boost/multi_array/copy_array.hpp \*
>
> *../../Boost/multi_array/concept_checks.hpp \*
>
> *../../Boost/multi_array/collection_concept.hpp \*
>
> *../../Boost/multi_array/base.hpp \*
>
> *../../Boost/multi_array/algorithm.hpp
>
> *
>
> *FORMS+= widget.ui*
>
>
> Now, how should I add in the widget.cpp file. It does not show any
> of the hpp files after typing #include<, I even tried #include
>
> Any hints?
>
> Thanks,
>
> Jothy
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> ___
> Qt-creator mailing list
> Qt-creator@trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-creator
>
>

 ___
 Qt-creator mailing list
 Qt-creator@trolltech.com
 http://lists.trolltech.com/mailma

Re: [Qt-creator] Adding header files

2010-07-23 Thread Jothy
Seems to be getting closer to the solution!

Now it say the header files used by view.hpp cannot be found.Please see the
screenshot.
The header files used by view.hpp is like #include "boost/multi_array/base.hpp"
as shown in the screenshot.



Thanks,

Jothy

On Fri, Jul 23, 2010 at 12:18 PM, Alex T.  wrote:

> qmake does it for you. In order for qmake to generate Makefile it should
> read .pro file. You just made the modifications to .pro file, that's why you
> need to regenerate Makefile. As for Qt Creator, then I think you should go
> to Build menu and run 'Clean Project', then go to Build menu again and run
> 'Run qmake' and then Ctrl+B.
>
>
> On 23 July 2010 14:13, Jothy  wrote:
>
>> I am not creating any make file for my project.
>>
>> If so how to do that in Qt Creator. I don't want to build corss-platform
>> apps. If it runs on winodws thats fine.
>>
>> Thanks,
>>
>> Jothy
>>
>>
>> On Fri, Jul 23, 2010 at 12:10 PM, Alex T.  wrote:
>>
>>> No, I'm talking about makefiles for your own project.
>>>
>>>
>>> On 23 July 2010 14:01, Jothy  wrote:
>>>
 No, in the boost website they say, we don't need to build them, we just
 need to include them.

 I am just a beginner in c++ and don't know many of the concepts.

 But, I able to build simple applications with vtk!

 Thanks,

 Jothy


 On Fri, Jul 23, 2010 at 11:54 AM, Alex T.  wrote:

> Did you regenerate Makefiles?
>
>
> On 23 July 2010 13:51, Jothy  wrote:
>
>> Sorry for the mistake!
>>
>> Now set it to INCLUDEPATH += -IC:\Boost\multi_array
>>
>> it says view.hpp: No such file or dir
>>
>> Thanks,
>>
>> Jothy
>>
>>
>> On Fri, Jul 23, 2010 at 11:47 AM, Alex T.  wrote:
>>
>>> -L is the flag that refers to libraries, and has to be passed to
>>> vars as LIBS. the same with -l (lower el).
>>>
>>> -I (capital i)refers to includes.
>>>
>>> So this is not a good idea to pass -L to INCLUDEPATH. You need to
>>> double check ytour paths.
>>>
>>>
>>> On 23 July 2010 13:44, Jothy  wrote:
>>>
 No, it says no such file or directory.

 I add INCLUDEPATH += -LC:\Boost\multi_array -lview

 Thanks,

 Jothy


 On Fri, Jul 23, 2010 at 11:35 AM, Alex T. wrote:

> I don't think you need to add boost headers to HEADERS variable.
> Instead, add the path to boost headers to INCLUDEPATH variable, e.g.
>
> INCLUDEPATH += -I/home/user/my_unpacked_boost_headers/multi_array
>
> Note that is capital i before the path.
>
> After that just #include  in your sources.
>
> On 23 July 2010 12:53, Jothy  wrote:
>
>> Hi Guys,
>>
>> I am trying to use boost header files with a simple Qt project in
>> Qt creator. By right clicking "Add existing files" in the headers 
>> (in the
>> project files view), I added few boost headers.
>>
>> And the pro file look like this
>>
>> *QT += core gui *
>>
>> *TARGET = untitled8*
>>
>> *TEMPLATE = app*
>>
>> *SOURCES += main.cpp\*
>>
>> *widget.cpp
>>
>> *
>>
>> *HEADERS  += widget.h \*
>>
>> *../../Boost/multi_array/view.hpp \*
>>
>> *../../Boost/multi_array/types.hpp \*
>>
>> *../../Boost/multi_array/subarray.hpp \*
>>
>> *../../Boost/multi_array/storage_order.hpp \*
>>
>> *../../Boost/multi_array/range_list.hpp \*
>>
>> *../../Boost/multi_array/multi_array_ref.hpp \*
>>
>> *../../Boost/multi_array/iterator.hpp \*
>>
>> *../../Boost/multi_array/index_range.hpp \*
>>
>> *../../Boost/multi_array/index_gen.hpp \*
>>
>> *../../Boost/multi_array/extent_range.hpp \*
>>
>> *../../Boost/multi_array/extent_gen.hpp \*
>>
>> *../../Boost/multi_array/copy_array.hpp \*
>>
>> *../../Boost/multi_array/concept_checks.hpp \*
>>
>> *../../Boost/multi_array/collection_concept.hpp \*
>>
>> *../../Boost/multi_array/base.hpp \*
>>
>> *../../Boost/multi_array/algorithm.hpp
>>
>> *
>>
>> *FORMS+= widget.ui*
>>
>>
>> Now, how should I add in the widget.cpp file. It does not show any
>> of the hpp files after typing #include<, I even tried #include>
>>
>> Any hints?
>>
>> Thanks,
>>
>> Jothy
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>>

Re: [Qt-creator] Adding header files

2010-07-23 Thread Jothy
I am not creating any make file for my project.

If so how to do that in Qt Creator. I don't want to build corss-platform
apps. If it runs on winodws thats fine.

Thanks,

Jothy

On Fri, Jul 23, 2010 at 12:10 PM, Alex T.  wrote:

> No, I'm talking about makefiles for your own project.
>
>
> On 23 July 2010 14:01, Jothy  wrote:
>
>> No, in the boost website they say, we don't need to build them, we just
>> need to include them.
>>
>> I am just a beginner in c++ and don't know many of the concepts.
>>
>> But, I able to build simple applications with vtk!
>>
>> Thanks,
>>
>> Jothy
>>
>>
>> On Fri, Jul 23, 2010 at 11:54 AM, Alex T.  wrote:
>>
>>> Did you regenerate Makefiles?
>>>
>>>
>>> On 23 July 2010 13:51, Jothy  wrote:
>>>
 Sorry for the mistake!

 Now set it to INCLUDEPATH += -IC:\Boost\multi_array

 it says view.hpp: No such file or dir

 Thanks,

 Jothy


 On Fri, Jul 23, 2010 at 11:47 AM, Alex T.  wrote:

> -L is the flag that refers to libraries, and has to be passed to vars
> as LIBS. the same with -l (lower el).
>
> -I (capital i)refers to includes.
>
> So this is not a good idea to pass -L to INCLUDEPATH. You need to
> double check ytour paths.
>
>
> On 23 July 2010 13:44, Jothy  wrote:
>
>> No, it says no such file or directory.
>>
>> I add INCLUDEPATH += -LC:\Boost\multi_array -lview
>>
>> Thanks,
>>
>> Jothy
>>
>>
>> On Fri, Jul 23, 2010 at 11:35 AM, Alex T.  wrote:
>>
>>> I don't think you need to add boost headers to HEADERS variable.
>>> Instead, add the path to boost headers to INCLUDEPATH variable, e.g.
>>>
>>> INCLUDEPATH += -I/home/user/my_unpacked_boost_headers/multi_array
>>>
>>> Note that is capital i before the path.
>>>
>>> After that just #include  in your sources.
>>>
>>> On 23 July 2010 12:53, Jothy  wrote:
>>>
 Hi Guys,

 I am trying to use boost header files with a simple Qt project in Qt
 creator. By right clicking "Add existing files" in the headers (in the
 project files view), I added few boost headers.

 And the pro file look like this

 *QT += core gui *

 *TARGET = untitled8*

 *TEMPLATE = app*

 *SOURCES += main.cpp\*

 *widget.cpp

 *

 *HEADERS  += widget.h \*

 *../../Boost/multi_array/view.hpp \*

 *../../Boost/multi_array/types.hpp \*

 *../../Boost/multi_array/subarray.hpp \*

 *../../Boost/multi_array/storage_order.hpp \*

 *../../Boost/multi_array/range_list.hpp \*

 *../../Boost/multi_array/multi_array_ref.hpp \*

 *../../Boost/multi_array/iterator.hpp \*

 *../../Boost/multi_array/index_range.hpp \*

 *../../Boost/multi_array/index_gen.hpp \*

 *../../Boost/multi_array/extent_range.hpp \*

 *../../Boost/multi_array/extent_gen.hpp \*

 *../../Boost/multi_array/copy_array.hpp \*

 *../../Boost/multi_array/concept_checks.hpp \*

 *../../Boost/multi_array/collection_concept.hpp \*

 *../../Boost/multi_array/base.hpp \*

 *../../Boost/multi_array/algorithm.hpp

 *

 *FORMS+= widget.ui*


 Now, how should I add in the widget.cpp file. It does not show any
 of the hpp files after typing #include<, I even tried #include>>>

 Any hints?

 Thanks,

 Jothy















 ___
 Qt-creator mailing list
 Qt-creator@trolltech.com
 http://lists.trolltech.com/mailman/listinfo/qt-creator


>>>
>>> ___
>>> Qt-creator mailing list
>>> Qt-creator@trolltech.com
>>> http://lists.trolltech.com/mailman/listinfo/qt-creator
>>>
>>>
>>
>

>>>
>>
>
___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


Re: [Qt-creator] Adding header files

2010-07-23 Thread Jothy
Sorry for the mistake!

Now set it to INCLUDEPATH += -IC:\Boost\multi_array

it says view.hpp: No such file or dir

Thanks,

Jothy

On Fri, Jul 23, 2010 at 11:47 AM, Alex T.  wrote:

> -L is the flag that refers to libraries, and has to be passed to vars as
> LIBS. the same with -l (lower el).
>
> -I (capital i)refers to includes.
>
> So this is not a good idea to pass -L to INCLUDEPATH. You need to double
> check ytour paths.
>
>
> On 23 July 2010 13:44, Jothy  wrote:
>
>> No, it says no such file or directory.
>>
>> I add INCLUDEPATH += -LC:\Boost\multi_array -lview
>>
>> Thanks,
>>
>> Jothy
>>
>>
>> On Fri, Jul 23, 2010 at 11:35 AM, Alex T.  wrote:
>>
>>> I don't think you need to add boost headers to HEADERS variable. Instead,
>>> add the path to boost headers to INCLUDEPATH variable, e.g.
>>>
>>> INCLUDEPATH += -I/home/user/my_unpacked_boost_headers/multi_array
>>>
>>> Note that is capital i before the path.
>>>
>>> After that just #include  in your sources.
>>>
>>> On 23 July 2010 12:53, Jothy  wrote:
>>>
 Hi Guys,

 I am trying to use boost header files with a simple Qt project in Qt
 creator. By right clicking "Add existing files" in the headers (in the
 project files view), I added few boost headers.

 And the pro file look like this

 *QT += core gui *

 *TARGET = untitled8*

 *TEMPLATE = app*

 *SOURCES += main.cpp\*

 *widget.cpp

 *

 *HEADERS  += widget.h \*

 *../../Boost/multi_array/view.hpp \*

 *../../Boost/multi_array/types.hpp \*

 *../../Boost/multi_array/subarray.hpp \*

 *../../Boost/multi_array/storage_order.hpp \*

 *../../Boost/multi_array/range_list.hpp \*

 *../../Boost/multi_array/multi_array_ref.hpp \*

 *../../Boost/multi_array/iterator.hpp \*

 *../../Boost/multi_array/index_range.hpp \*

 *../../Boost/multi_array/index_gen.hpp \*

 *../../Boost/multi_array/extent_range.hpp \*

 *../../Boost/multi_array/extent_gen.hpp \*

 *../../Boost/multi_array/copy_array.hpp \*

 *../../Boost/multi_array/concept_checks.hpp \*

 *../../Boost/multi_array/collection_concept.hpp \*

 *../../Boost/multi_array/base.hpp \*

 *../../Boost/multi_array/algorithm.hpp

 *

 *FORMS+= widget.ui*


 Now, how should I add in the widget.cpp file. It does not show any of
 the hpp files after typing #include<, I even tried #include>>>

 Any hints?

 Thanks,

 Jothy















 ___
 Qt-creator mailing list
 Qt-creator@trolltech.com
 http://lists.trolltech.com/mailman/listinfo/qt-creator


>>>
>>> ___
>>> Qt-creator mailing list
>>> Qt-creator@trolltech.com
>>> http://lists.trolltech.com/mailman/listinfo/qt-creator
>>>
>>>
>>
>
___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


Re: [Qt-creator] Adding header files

2010-07-23 Thread Jothy
No, it says no such file or directory.

I add INCLUDEPATH += -LC:\Boost\multi_array -lview

Thanks,

Jothy

On Fri, Jul 23, 2010 at 11:35 AM, Alex T.  wrote:

> I don't think you need to add boost headers to HEADERS variable. Instead,
> add the path to boost headers to INCLUDEPATH variable, e.g.
>
> INCLUDEPATH += -I/home/user/my_unpacked_boost_headers/multi_array
>
> Note that is capital i before the path.
>
> After that just #include  in your sources.
>
> On 23 July 2010 12:53, Jothy  wrote:
>
>> Hi Guys,
>>
>> I am trying to use boost header files with a simple Qt project in Qt
>> creator. By right clicking "Add existing files" in the headers (in the
>> project files view), I added few boost headers.
>>
>> And the pro file look like this
>>
>> *QT += core gui *
>>
>> *TARGET = untitled8*
>>
>> *TEMPLATE = app*
>>
>> *SOURCES += main.cpp\*
>>
>> *widget.cpp
>>
>> *
>>
>> *HEADERS  += widget.h \*
>>
>> *../../Boost/multi_array/view.hpp \*
>>
>> *../../Boost/multi_array/types.hpp \*
>>
>> *../../Boost/multi_array/subarray.hpp \*
>>
>> *../../Boost/multi_array/storage_order.hpp \*
>>
>> *../../Boost/multi_array/range_list.hpp \*
>>
>> *../../Boost/multi_array/multi_array_ref.hpp \*
>>
>> *../../Boost/multi_array/iterator.hpp \*
>>
>> *../../Boost/multi_array/index_range.hpp \*
>>
>> *../../Boost/multi_array/index_gen.hpp \*
>>
>> *../../Boost/multi_array/extent_range.hpp \*
>>
>> *../../Boost/multi_array/extent_gen.hpp \*
>>
>> *../../Boost/multi_array/copy_array.hpp \*
>>
>> *../../Boost/multi_array/concept_checks.hpp \*
>>
>> *../../Boost/multi_array/collection_concept.hpp \*
>>
>> *../../Boost/multi_array/base.hpp \*
>>
>> *../../Boost/multi_array/algorithm.hpp
>>
>> *
>>
>> *FORMS+= widget.ui*
>>
>>
>> Now, how should I add in the widget.cpp file. It does not show any of the
>> hpp files after typing #include<, I even tried #include>
>>
>> Any hints?
>>
>> Thanks,
>>
>> Jothy
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> ___
>> Qt-creator mailing list
>> Qt-creator@trolltech.com
>> http://lists.trolltech.com/mailman/listinfo/qt-creator
>>
>>
>
> ___
> Qt-creator mailing list
> Qt-creator@trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-creator
>
>
___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


Re: [Qt-creator] Adding header files

2010-07-23 Thread Alex T.
I don't think you need to add boost headers to HEADERS variable. Instead,
add the path to boost headers to INCLUDEPATH variable, e.g.

INCLUDEPATH += -I/home/user/my_unpacked_boost_headers/multi_array

Note that is capital i before the path.

After that just #include  in your sources.

On 23 July 2010 12:53, Jothy  wrote:

> Hi Guys,
>
> I am trying to use boost header files with a simple Qt project in Qt
> creator. By right clicking "Add existing files" in the headers (in the
> project files view), I added few boost headers.
>
> And the pro file look like this
>
> *QT += core gui *
>
> *TARGET = untitled8*
>
> *TEMPLATE = app*
>
> *SOURCES += main.cpp\*
>
> *widget.cpp
>
> *
>
> *HEADERS  += widget.h \*
>
> *../../Boost/multi_array/view.hpp \*
>
> *../../Boost/multi_array/types.hpp \*
>
> *../../Boost/multi_array/subarray.hpp \*
>
> *../../Boost/multi_array/storage_order.hpp \*
>
> *../../Boost/multi_array/range_list.hpp \*
>
> *../../Boost/multi_array/multi_array_ref.hpp \*
>
> *../../Boost/multi_array/iterator.hpp \*
>
> *../../Boost/multi_array/index_range.hpp \*
>
> *../../Boost/multi_array/index_gen.hpp \*
>
> *../../Boost/multi_array/extent_range.hpp \*
>
> *../../Boost/multi_array/extent_gen.hpp \*
>
> *../../Boost/multi_array/copy_array.hpp \*
>
> *../../Boost/multi_array/concept_checks.hpp \*
>
> *../../Boost/multi_array/collection_concept.hpp \*
>
> *../../Boost/multi_array/base.hpp \*
>
> *../../Boost/multi_array/algorithm.hpp
>
> *
>
> *FORMS+= widget.ui*
>
>
> Now, how should I add in the widget.cpp file. It does not show any of the
> hpp files after typing #include<, I even tried #include
>
> Any hints?
>
> Thanks,
>
> Jothy
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> ___
> Qt-creator mailing list
> Qt-creator@trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-creator
>
>
___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


[Qt-creator] Adding header files

2010-07-23 Thread Jothy
Hi Guys,

I am trying to use boost header files with a simple Qt project in Qt
creator. By right clicking "Add existing files" in the headers (in the
project files view), I added few boost headers.

And the pro file look like this

*QT += core gui *

*TARGET = untitled8*

*TEMPLATE = app*

*SOURCES += main.cpp\*

*widget.cpp

*

*HEADERS  += widget.h \*

*../../Boost/multi_array/view.hpp \*

*../../Boost/multi_array/types.hpp \*

*../../Boost/multi_array/subarray.hpp \*

*../../Boost/multi_array/storage_order.hpp \*

*../../Boost/multi_array/range_list.hpp \*

*../../Boost/multi_array/multi_array_ref.hpp \*

*../../Boost/multi_array/iterator.hpp \*

*../../Boost/multi_array/index_range.hpp \*

*../../Boost/multi_array/index_gen.hpp \*

*../../Boost/multi_array/extent_range.hpp \*

*../../Boost/multi_array/extent_gen.hpp \*

*../../Boost/multi_array/copy_array.hpp \*

*../../Boost/multi_array/concept_checks.hpp \*

*../../Boost/multi_array/collection_concept.hpp \*

*../../Boost/multi_array/base.hpp \*

*../../Boost/multi_array/algorithm.hpp

*

*FORMS+= widget.ui*


Now, how should I add in the widget.cpp file. It does not show any of the
hpp files after typing #include<, I even tried #include___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


Re: [Qt-creator] Cout not printing

2010-07-23 Thread carsten.owerfeldt
Hi Andre,

I agree, it doesn't make much sense to maintain 3 wikis. This is exactly the 
reason why I suggested concentrating on the forum.nokia.com wiki.

1) forum.nokia has probably the highest visibility and biggest audience we 
might reach
(qt developer network wiki and gitorious might be great IF you know Creator 
already, for new users it's quite hard to guess)
2) forum.nokia.com wiki is using the wikipedia format which makes it really 
easy to exchange articles
3) a lot of Symbian and Maemo articles are already available at forum.nokia wiki
and last but not least - you have quite some freedom generating categories, 
articles, etc.

Just my 2 cents

Carsten


Von: qt-creator-boun...@trolltech.com [qt-creator-boun...@trolltech.com] im 
Auftrag von Poenitz Andre (Nokia-MS-Qt/Berlin)
Gesendet: Freitag, 23. Juli 2010 10:43
An: qt-creator@trolltech.com
Betreff: Re: [Qt-creator] Cout not printing

On Friday 23 July 2010 09:51:15 Owerfeldt Carsten (Nokia-MS/Berlin) wrote:
> I would recommend using the forum.nokia wiki:
>
> http://wiki.forum.nokia.com/index.php/Category:Qt_Creator
> http://wiki.forum.nokia.com/index.php/Qt_Creator
>
> [...]
> Im Auftrag von ext Andre Poenitz [andre.poen...@mathematik.tu-chemnitz.de]
> Something like http://qt.gitorious.org/qt-creator/pages/Home ?

Looks like some potential for consolidation.

Could we move the contents of one of those to the other and
replace it with a link or such?

Andre'
___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator

___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


Re: [Qt-creator] Cout not printing

2010-07-23 Thread André Pönitz
On Friday 23 July 2010 09:51:15 Owerfeldt Carsten (Nokia-MS/Berlin) wrote:
> I would recommend using the forum.nokia wiki:
> 
> http://wiki.forum.nokia.com/index.php/Category:Qt_Creator
> http://wiki.forum.nokia.com/index.php/Qt_Creator
>
> [...]
> Im Auftrag von ext Andre Poenitz [andre.poen...@mathematik.tu-chemnitz.de]
> Something like http://qt.gitorious.org/qt-creator/pages/Home ?

Looks like some potential for consolidation.

Could we move the contents of one of those to the other and
replace it with a link or such?

Andre'
___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


Re: [Qt-creator] Cout not printing

2010-07-23 Thread Jothy
Thanks for the links!

Jothy

On Fri, Jul 23, 2010 at 9:24 AM, Tobias Hunger wrote:

> On 23.07.2010 09:51, Owerfeldt Carsten (Nokia-MS/Berlin) wrote:
> > Hi Jothy,
> >
> > I would recommend using the forum.nokia wiki:
> >
> > http://wiki.forum.nokia.com/index.php/Category:Qt_Creator
> > http://wiki.forum.nokia.com/index.php/Qt_Creator
>
> Hi Jothy,
>
> and then there is the new qt developer network wiki, too.
> http://developer.qt.nokia.com/wiki/Category:Tools::QtCreator
>
> Please do not open *another* wiki!
>
> Best Regards,
> Tobias
>
> --
> Tobias Hunger
> Software Engineer
> Nokia, Qt Development Frameworks
>
> Nokia gate5 GmbH
> Firmensitz: Invalidenstr. 117, 10115 Berlin, Germany
> Registergericht: Amtsgericht Charlottenburg, Berlin: HRB 106443 B
> Umsatzsteueridentifikationsnummer: DE 812 845 193
> Geschäftsführer: Dr. Michael Halbherr, Karim Tähtivuori
> ___
> Qt-creator mailing list
> Qt-creator@trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-creator
>
___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


Re: [Qt-creator] Cout not printing

2010-07-23 Thread Tobias Hunger
On 23.07.2010 09:51, Owerfeldt Carsten (Nokia-MS/Berlin) wrote:
> Hi Jothy,
>
> I would recommend using the forum.nokia wiki:
>
> http://wiki.forum.nokia.com/index.php/Category:Qt_Creator
> http://wiki.forum.nokia.com/index.php/Qt_Creator

Hi Jothy,

and then there is the new qt developer network wiki, too.
http://developer.qt.nokia.com/wiki/Category:Tools::QtCreator

Please do not open *another* wiki!

Best Regards,
Tobias

-- 
Tobias Hunger
Software Engineer
Nokia, Qt Development Frameworks

Nokia gate5 GmbH
Firmensitz: Invalidenstr. 117, 10115 Berlin, Germany
Registergericht: Amtsgericht Charlottenburg, Berlin: HRB 106443 B
Umsatzsteueridentifikationsnummer: DE 812 845 193
Geschäftsführer: Dr. Michael Halbherr, Karim Tähtivuori
___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


Re: [Qt-creator] Cout not printing

2010-07-23 Thread carsten.owerfeldt
Hi Jothy,

I would recommend using the forum.nokia wiki:

http://wiki.forum.nokia.com/index.php/Category:Qt_Creator
http://wiki.forum.nokia.com/index.php/Qt_Creator

Carsten

Von: qt-creator-boun...@trolltech.com [qt-creator-boun...@trolltech.com] im 
Auftrag von ext Andre Poenitz [andre.poen...@mathematik.tu-chemnitz.de]
Gesendet: Donnerstag, 22. Juli 2010 23:56
An: qt-creator@trolltech.com
Betreff: Re: [Qt-creator] Cout not printing

On Thu, Jul 22, 2010 at 03:41:53PM +0100, Jothy wrote:
> Yes, it works fine!
>
> Does anyone have experience of using boost libraries with QtCreator?
>
> If so, any instruction on how to use.
>
> I think we should start a WIKI page for Qt Creator.

Something like http://qt.gitorious.org/qt-creator/pages/Home ?

Andre'
___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator

___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator