Results 1 to 4 of 4

Thread: qtCreator: compiler does not find my header file, but the editor does

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Nov 2009
    Location
    US, Midwest
    Posts
    215
    Thanks
    62
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default qtCreator: compiler does not find my header file, but the editor does

    I am new to qtcreator, moving from visual studio. I installed vs2012, compiled qt5.0.2, installed qtcreator 2.7 and started a new project. My kit in the project is "Microsoft Visual C++ compiler 11(x86)"

    My pro file has following lines:

    INCLUDEPATH += C:/mib/TPlat/Components/Exports/ \
    C:/mib/TPlat/Components/Common/ \
    C:/mib/TPlat/Components/Exports/

    When compiling, I am getting following error message:
    bars.cpp:1: error: C1083: Cannot open include file: 'aiacompilerwarnings.h': No such file or directory

    When I go to the bars.cpp in the editor I can see the hint for the aiacompilerwarnings.h, pointing to the right location and I can open the header in the editor without a problem. So the header exists. It looks like the compiler directive does not point correctly to the location of the header.

    Attached image shows the views of the editor with the header and pro file fragment.

    I'll appreciate any help to solve this issue.

    qtCreatorIssue.png

  2. The following user says thank you to TorAn for this useful post:


Similar Threads

  1. Editor unable to find Header Files
    By weaver4 in forum Qt Tools
    Replies: 4
    Last Post: 11th May 2012, 21:52
  2. QtCreator compiler options
    By soxs060389 in forum Installation and Deployment
    Replies: 2
    Last Post: 2nd December 2011, 00:19
  3. compiler and app error with qtcreator 2.3 and 4..7.4
    By creatio.x in forum Installation and Deployment
    Replies: 2
    Last Post: 6th September 2011, 09:16
  4. Replies: 8
    Last Post: 8th August 2011, 20:47
  5. Replies: 1
    Last Post: 16th March 2010, 18:41

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.