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. How to compile & run single .c/.cpp file in Qt Creator 2.6.0?
Forum Updated to NodeBB v4.3 + New Features

How to compile & run single .c/.cpp file in Qt Creator 2.6.0?

Scheduled Pinned Locked Moved Qt Creator and other tools
4 Posts 2 Posters 6.0k 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.
  • R Offline
    R Offline
    rsjethani
    wrote on last edited by
    #1

    Hi,
    I've been waiting for "this bug":https://bugreports.qt-project.org/browse/QTCREATORBUG-106 to get fixed and according to the link, it has been fixed in 2.6.0 version. But still if I open a single .c file build menu is disabled. I don't understand how to run a single file. Do I have to make some configuration changes???help!!!

    Info: Qt creator 2.6.0 standalone binary was installed under /opt on Linux Mint 13 x86

    thanks.

    Ravi S. Jethani

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tobias.hunger
      wrote on last edited by
      #2

      Creator will now build single files that are part of a project (at least for qmake based projects). It will not build random files without build system.

      Fastest way to get started with a project is most likely running "qmake -project" in the directory with the files you want to build. That will generate a .pro file for you.

      1 Reply Last reply
      0
      • R Offline
        R Offline
        rsjethani
        wrote on last edited by
        #3

        Then why above mentioned bug report says 'fixed' for version 2.6 ?

        Ravi S. Jethani

        1 Reply Last reply
        0
        • T Offline
          T Offline
          tobias.hunger
          wrote on last edited by
          #4

          Because you can compile a single file of your project without building everything else. That is what the bug report asks for.

          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