March 23, 2012

jean-luc jean-luc
Lab Rat
5 posts

compiling a file without project ?

 

Hello,

Is there a way to compile a file outside of a project ? I’m currently brushing a bit my memories of C++ by doing some tutorials and there is several one file examples to compile. I would like to not have to make a new project for every example or replace each example by its following.

best regards

4 replies

March 23, 2012

Andre Andre
Area 51 Engineer
6031 posts

you can see the commands to compile a file by just watching a compile from a project happen. You can use the same commands manually, per file, if you want.

 Signature 

Looking for Qt developers to join our team @ i-Optics: https://qt-project.org/forums/viewthread/25393/

March 23, 2012

jean-luc jean-luc
Lab Rat
5 posts

So not way to compile by a clic. Thanks al lot for your answer.

March 23, 2012

Andre Andre
Area 51 Engineer
6031 posts

No, not that I’m aware of. If you think it would be useful to be able to compile a single file from Qt Creator, I suggest you file a suggestion in the bugtracker [bugreports.qt-project.org] .

 Signature 

Looking for Qt developers to join our team @ i-Optics: https://qt-project.org/forums/viewthread/25393/

March 23, 2012

jean-luc jean-luc
Lab Rat
5 posts

Thanks again. I just noticed that a bug report already exist: https://bugreports.qt-project.org/browse/QTCREATORBUG-106

Well, I suppose I would have to use another ide, it’s not a big trouble. Thanks anyway.

 
  ‹‹ linux build doesn’t like reference to cstdint...      Specifying run configurations directly in qmake project files ››

You must log in to post a reply. Not a member yet? Register here!