Page 1 of 2

?? newbie questions about compiler

Posted: Tue Jun 09, 2015 10:56 am
by martymarty
:?:
I am a newbie. I know how to write a C program to print "Hello World" . I am that 'new'

b]
QUESTIONS[/b]

1. Can you give me an Internet address where I might find a simple explanation of what is an IDE (such as < codelite IDE> ) ?

2. Most importantly: do I need a compiler to use < codelite IDE > to print "Hello World" ?
If I do need a compiler where would I find a one for my Windows XP computer?

3. Is there an example of ALL the steps required to write a "Hello World" C program. I can't get < codelite IDE > to produce a print out !

please give 3 answers.
Thanks
martymarty

Re: ?? newbie questions about compiler

Posted: Wed Jun 10, 2015 8:58 pm
by eranif
martymarty wrote:1. Can you give me an Internet address where I might find a simple explanation of what is an IDE (such as < codelite IDE> ) ?
http://lmgtfy.com/?q=what+is+an+IDE
martymarty wrote:2. Most importantly: do I need a compiler to use < codelite IDE > to print "Hello World" ?
If I do need a compiler where would I find a one for my Windows XP computer?
Yes, an IDE is not a compiler
martymarty wrote:3. Is there an example of ALL the steps required to write a "Hello World" C program. I can't get < codelite IDE > to produce a print out !
http://codelite.org/AddNewCompiler/AddNewCompiler

Eran

Re: ?? newbie questions about compiler

Posted: Sat Jun 13, 2015 7:44 pm
by willlearn
I am having a few troubles of my own with programming. If you don't mind me asking, what compiler did you use to print out "Hello World"?

Re: ?? newbie questions about compiler

Posted: Sat Jun 13, 2015 8:41 pm
by eranif

Re: ?? newbie questions about compiler

Posted: Sun Jun 14, 2015 10:58 pm
by willlearn
I clicked on the link to download clang version 3.5, and installed it under my c drive. Then I opened CodeLite 7, told it to automatically detect installed compilers, and it detected my clang installation. Then I opened up my project, changed its compiler to clang, and tried to build the project. But all it does is hang there. I can do other stuff with my laptop, but CodeLite doesn't display anything.

Re: ?? newbie questions about compiler

Posted: Sun Jun 14, 2015 11:41 pm
by eranif
That link offers to install MinGW564 or 32... how did you end up installing the one compiler that does not work well on Windows :P ?
Please install MinGW64

Eran

Re: ?? newbie questions about compiler

Posted: Mon Jun 15, 2015 3:40 am
by willlearn
Oh sorry. Got a little mixed up.
Anyway, I clicked on the link to download the 64 bit version of TDM GCC 4.9.2, and installed it under my c drive. It created a folder called TDM-GCC-64. Then I opened CodeLite, and had to manually add the compiler. CodeLite gave it a weird name, MinGW ( gcc.exe (tdm64-1) 4.9.2 ), but I decided to leave it that way. So I created a new C++ workspace, and a simple g++ executable project. But it will still hang and not build.

Re: ?? newbie questions about compiler

Posted: Mon Jun 15, 2015 9:03 am
by eranif
Do you have any firewalls / anti virus software installed? It might be that it is blocking the execution of the compiler

Eran

Re: ?? newbie questions about compiler

Posted: Mon Jun 15, 2015 7:07 pm
by willlearn
Thank you for your help so far.
Yes, I do have a firewall and antivirus software; however, I disabled them and CodeLite still won't build. If execute without building in CodeLite, then it will show a display of something like returned with 0.
Also, I can compile and execute in cmd. Doing this will display the desired output, in this case "Hello World!".
willlearn

Re: ?? newbie questions about compiler

Posted: Mon Jun 15, 2015 9:38 pm
by eranif
Please post the content of your build log, and your 'Trace' tab
Eran