?? newbie questions about compiler

General questions regarding the usage of CodeLite
martymarty
CodeLite Curious
Posts: 1
Joined: Mon Jun 08, 2015 11:42 am
Genuine User: Yes
IDE Question: CCC
Contact:

?? newbie questions about compiler

Post 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
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: ?? newbie questions about compiler

Post 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
Make sure you have read the HOW TO POST thread
willlearn
CodeLite Enthusiast
Posts: 14
Joined: Tue Jun 02, 2015 6:58 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: ?? newbie questions about compiler

Post 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"?
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: ?? newbie questions about compiler

Post by eranif »

Make sure you have read the HOW TO POST thread
willlearn
CodeLite Enthusiast
Posts: 14
Joined: Tue Jun 02, 2015 6:58 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: ?? newbie questions about compiler

Post 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.
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: ?? newbie questions about compiler

Post 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
Make sure you have read the HOW TO POST thread
willlearn
CodeLite Enthusiast
Posts: 14
Joined: Tue Jun 02, 2015 6:58 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: ?? newbie questions about compiler

Post 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.
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: ?? newbie questions about compiler

Post by eranif »

Do you have any firewalls / anti virus software installed? It might be that it is blocking the execution of the compiler

Eran
Make sure you have read the HOW TO POST thread
willlearn
CodeLite Enthusiast
Posts: 14
Joined: Tue Jun 02, 2015 6:58 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: ?? newbie questions about compiler

Post 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
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: ?? newbie questions about compiler

Post by eranif »

Please post the content of your build log, and your 'Trace' tab
Eran
Make sure you have read the HOW TO POST thread
Post Reply