Codelite run .c program no output

CodeLite installation/troubleshooting forum
marvin
CodeLite Curious
Posts: 7
Joined: Wed Mar 04, 2015 12:07 am
Genuine User: Yes
IDE Question: C++
Contact:

Codelite run .c program no output

Post by marvin »

I am using [Codelite 7.0](http://codelite.org/) for C programming. These are the steps that I followed to execute a `.c` program:

* `Workspace`-->`New Workspace`-->`C++ Workspace`
* `Workspace`-->`New Project`-->`Console`-->`gcc`
* `Compiler`-->`gnu gcc`
* `Debugger`-->`GNU gdb debugger`
* `Build`-->`Build Project`
* `Build`-->`Compile Current File`
* `Build`-->`Run`

Here is my `.c` program (a 'Hello World'): http://pastebin.com/gcv7W2tp

#include <stdio.h>

int main(int argc, char **argv)
{
printf("hello world\n");
return 0;
}

When I click run there is no output in the command prompt, which is weird.

How can I fix that?
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Codelite run .c program no output

Post by eranif »

Where is the build output?
Please read the "HOW TO POST" (see my signature)

Eran
Make sure you have read the HOW TO POST thread
marvin
CodeLite Curious
Posts: 7
Joined: Wed Mar 04, 2015 12:07 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: Codelite run .c program no output

Post by marvin »

Added:
OS:Windows 8 64 bit
Build output:C:\Windows\system32\cmd.exe /C "mingw32-make.exe -j 4 -e -f Makefile"
'mingw32-make.exe' is not recognized as an internal or external command,
operable program or batch file.
0 errors, 0 warnings
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Codelite run .c program no output

Post by eranif »

marvin wrote:'mingw32-make.exe' is not recognized as an internal or external command
Did you install a compiler?

Also, which codelite version?

Eran
Make sure you have read the HOW TO POST thread
marvin
CodeLite Curious
Posts: 7
Joined: Wed Mar 04, 2015 12:07 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: Codelite run .c program no output

Post by marvin »

Codelite version 7.0.I've downloaded from here:http://downloads.codelite.org/
Also i did not installed a compiler.
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Codelite run .c program no output

Post by eranif »

Well, CodeLite is not a compiler, its an IDE
See this wiki page:

http://codelite.org/AddNewCompiler/AddNewCompiler

Eran
Make sure you have read the HOW TO POST thread
marvin
CodeLite Curious
Posts: 7
Joined: Wed Mar 04, 2015 12:07 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: Codelite run .c program no output

Post by marvin »

Thanks!That solved the problem.
Post Reply