Results 1 to 2 of 2

Thread: Precompiled Headers and Qt Creator on mac (g++)

  1. #1
    Join Date
    Dec 2009
    Posts
    1
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Precompiled Headers and Qt Creator on mac (g++)

    Hello,

    I'm using precompiled headers on a Qt cross platform project to speed up compilation time. I'm using Qt 4.6.2 .When I compile the project using macx-g++ (meaning the g++ compiler) it doesn't include the stdafx.h automatically for each header. When compiling under xcode it will work. I'm using the PRECOMPILED_HEADER qmake constant to point at my stdafx.h.

    So is it a limitation from g++? Or there a solution/work around?

    Thanks for your help, Boris -

  2. #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: Precompiled Headers and Qt Creator on mac (g++)

    How does your project file look like? What version of g++ do you have?

Similar Threads

  1. VSAddin bug with precompiled headers?
    By indiocolifa in forum Newbie
    Replies: 3
    Last Post: 28th May 2013, 06:48
  2. includes from headers
    By BadKnees in forum Qt Programming
    Replies: 2
    Last Post: 31st March 2009, 08:55
  3. Where are those headers?
    By yagabey in forum Qt for Embedded and Mobile
    Replies: 5
    Last Post: 17th January 2009, 16:29
  4. Precompiled headers
    By Benjamin in forum Qt Programming
    Replies: 1
    Last Post: 4th December 2008, 14:48
  5. Sharing precompiled headers
    By magland in forum Qt Programming
    Replies: 0
    Last Post: 15th November 2007, 09:49

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.