[Qt-interest] g++ headers not found in Ubuntu

uanacho uanacho at gmail.com
Sat Apr 17 18:30:21 CEST 2010


I did the test you've suggested me and it compiles fine.

I still think that the mistake is in the Qt's generated makefile. I couldn't
find how can I change the paths that it puts in the makefile.

The change would be: /usr/X11R6/include  for /usr/include and so on. The
X11R6 directory doesn't exist



On Sat, Apr 17, 2010 at 1:03 PM, Andreas Pakulat <apaku at gmx.de> wrote:

> On 17.04.10 10:59:47, uanacho wrote:
> > gcc and g++ it's already installed on ubuntu Linux.
> >
> > The headers are in: usr/include and /usr/include/g++/4.4.1
> >
> > I'll copy an excerpt of the makefile generated by QtCreator
> >
> > You could see that in INCPATH label and LIB label references to X11R6
> > directory. I think this is the problem, it cannot find the usr/lib and
> > usr/include directory.
>
> No thats not the problem. The STL includes are found by the compiler
> itself, there's no -I switch needed for it. Are you sure that g++ is 4.4.1?
> If not it won't find the headers in /usr/include/g++/4.4.1. I suggest you
> start simple and try:
>
> g++ main.cpp
>
> With a main.cpp that has this content:
>
> ,----
> | #include <string>
> | #include <iostream>
> |
> | int main()
> | {
> | std::string s("Test");
> | std::cout << s << std::endl;
> | }
> `----
>
> Andreas
>
> --
> You'd like to do it instantaneously, but that's too slow.
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100417/de212057/attachment.html 


More information about the Qt-interest-old mailing list