Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. QtCreator not using compile flags
QtWS25 Last Chance

QtCreator not using compile flags

Scheduled Pinned Locked Moved Qt Creator and other tools
qtcreator 3.3.1
2 Posts 2 Posters 1.3k Views
  • 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.
  • P Offline
    P Offline
    pmaynard
    wrote on last edited by
    #1

    I am using some outside code that uses the ".c" extension but uses c++ syntax. I've put the "QMAKE_CXXFLAGS += /TP" in my ".pro" file, and QtCreator (using VS2013) isn't using this flag. If I use the Qt plugin for VS2013 and build the project inside VS2013, it uses the "/TP" flag and everything works.

    QtCreator bug? Is there a work around? I tried both QMAKE_CXXFLAGS and QMAKE_CXXFLAGS_DEBUG. The outside vendor gives us updates, so renaming the .c's to .cpp isn't an option.

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mchinand
      wrote on last edited by
      #2

      Try using the QMAKE_EXT_CPP qmake variable to have .c files treated as c++ files.

      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