Results 1 to 4 of 4

Thread: URGENT: I have a problem in including qcoreapplication.h and qatomic.h

  1. #1
    Join Date
    Mar 2008
    Posts
    8
    Qt products
    Qt4
    Platforms
    Windows

    Unhappy URGENT: I have a problem in including qcoreapplication.h and qatomic.h

    Hello friends,

    I have a problem here in QT.

    My C++ project uses QT.
    I have set all the include paths correctly.

    When I build the application, it says cannot include qcoreapplication.h and qatomic.h though I have include $(QTDIR)\include\QtCore and $(QTDIR)\include\Qt directories.

    Please help... !
    Thanks in davance.

    Regards,
    Praveen

  2. #2
    Join Date
    Mar 2008
    Posts
    8
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: URGENT: I have a problem in including qcoreapplication.h and qatomic.h

    Hi friends ...

    This is the error I am getting.........

    Please someone help
    -----------------------------------------------------------------------------------------------

    3>------ Build started: Project: HQt_F_XL, Configuration: Debug Win32 ------
    3>Compiling...
    3>QVariant_F.cpp
    3>d:\qt\4.3.2\src\corelib\kernel\qvariant.h(25) : fatal error C1083: Cannot open include file: 'QtCore/qatomic.h': No such file or directory
    3>FAdapterHelper.cpp
    3>d:\qt\4.3.2\src\gui\kernel\qapplication.h(25) : fatal error C1083: Cannot open include file: 'QtCore/qcoreapplication.h': No such file or directory
    3>Generating Code...
    3>Build log was saved at "file://d:\CORONA\HEAP\Build\Src\Adapters\Fortran\HQt_F\De bug\BuildLog.htm"
    3>HQt_F_XL - 2 error(s), 0 warning(s)
    -----------------------------------------------------------------------------------------------

    Thank you.

    Regards,
    Praveen

  3. #3
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Help please ... :(

    Why don't you use qmake to generate a suitable .vcproj?
    Qt Code:
    1. qmake -tp vc
    To copy to clipboard, switch view to plain text mode 
    J-P Nurmi

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Fatal error: cannot include qcoreapplication and qatomic.h

    Do you have QTDIR environment variable set? What happens if you use proper path instead of $(QTDIR)?

    Edit: Please, don't start more than one thread on the same topic.
    Last edited by jacek; 10th May 2008 at 17:52.

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.