Quantcast
Channel: Active questions tagged gcc - Stack Overflow
Viewing all articles
Browse latest Browse all 22031

Run Plain C Project in Qt Creator

$
0
0

I created a plain c project in qt creator using File->New file or Project->Non Qt Projects->Plain C Project

main.c

#include <stdio.h>

int main(void)
{
    printf("Hello World!\n");
    return 0;
}

test.pro

TEMPLATE = app
CONFIG += console
CONFIG -= qt

SOURCES += main.c

I build the project using Ctrl+B which was successful. But I am not able to run the project with Ctrl+R. I earlier used to run the following command to compile and run c program

gcc main.c 
./a.out

But Now I am not able to get how to run c program in qt creator. I am new to Qt Creator. Please Help


Viewing all articles
Browse latest Browse all 22031

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>