Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Compilation error on Mac & Qt5.1.0: error: C99 support was enabled in PCH file but is currently disabled

Compilation error on Mac & Qt5.1.0: error: C99 support was enabled in PCH file but is currently disabled

Scheduled Pinned Locked Moved General and Desktop
2 Posts 1 Posters 3.2k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    floatingWoods
    wrote on last edited by
    #1

    Hello,

    I just moved from Qt4.7.4 to Qt5.1.0. The move required a few minor adjustments for the code, and the Windows and Linux version of my application works now with Qt5.1.0. But I am having a hard time with the Mac version and that strange error:

    error: C99 support was enabled in PCH file but is currently disabled

    Anyone has an idea what it means?
    Thanks for any insight!

    1 Reply Last reply
    0
    • F Offline
      F Offline
      floatingWoods
      wrote on last edited by
      #2

      Well, I finally found what was wrong:

      The files where that happened where named "xxx.H" and "xxx.CPP". It seems that a "CPP" in capital letters is considered as a pure C-file with current compiler. Replacing "CPP" with "cpp" and "H" with "h" resolved the problem!

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved