Results 1 to 4 of 4

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

  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:


  3. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

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

    Where is the file located?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  4. #3
    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 Re: qtCreator: compiler does not find my header file, but the editor does

    in C:/mib/TPlat/Components/Common

    in C:/mib/TPlat/Components/Common


    Added after 37 minutes:


    I created a simple test lib project to illustrate the problem. The zip file with source is attached.
    The project kit is "Microsoft Visual C++ compiler 11.0 (x86)" as listed under "kits"
    Qt version: Qt 5.0.2
    Attached Files Attached Files
    Last edited by TorAn; 13th April 2013 at 21:53.

  5. #4
    Join Date
    May 2013
    Posts
    1
    Qt products
    Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

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

    Any luck with this issue? I'm having the exact same problem and am coming up short.

    Thanks!

Similar Threads

  1. Editor unable to find Header Files
    By weaver4 in forum Qt Tools
    Replies: 4
    Last Post: 11th May 2012, 22:52
  2. QtCreator compiler options
    By soxs060389 in forum Installation and Deployment
    Replies: 2
    Last Post: 2nd December 2011, 01: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, 10:16
  4. Replies: 8
    Last Post: 8th August 2011, 21:47
  5. Replies: 1
    Last Post: 16th March 2010, 19: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.