Code::Blocks Forums

User forums => Help => Topic started by: kolahalb on March 05, 2010, 03:34:11 pm

Title: trouble in writing the first program
Post by: kolahalb on March 05, 2010, 03:34:11 pm
Hello everyone,today I downloaded code::block (after failing to run turbo C in Vista) in my Inspiron 1525 laptop from

codeblocks-8.02-setup.exe  28 Feb 2008 10.8 MB  Sourceforge or BerliOS
http://www.codeblocks.org/downloads/5

[because they say The compiler included in codeblocks-8.02mingw-setup.exe does not work reliable on Windows Vista.]

specification:32 bit OS,Windows Vista Home Basic SP2

After installation,I went like this:
File>new>project>Console Application>

I selected the language C I want to use as I am learning C (I am programing for the first time) from a book on C language.
In "Folder to create project in" I specified: C:\Program Files\CodeBlocks\

I selected GNU GCC compiler (I do not know what that means) as it was default.

As I am trying the test program it says

""program - Debug" uses an invalid compiler [YOUR ANSWER IS ALREADY THERE. SEARCH THE FORUMS!]. Skipping...
Nothing to be done."




Title: Re: trouble in writing the first program
Post by: kolahalb on March 05, 2010, 03:35:07 pm
Sorry...I happened to post...

Please show me how to deal with this...
Title: Re: trouble in writing the first program
Post by: stahta01 on March 05, 2010, 03:39:44 pm
1. INSTALL A VISTA COMPATIBLE COMPILER
2. CONFIGURE CODE:BLOCKS TO USE COMPILER
3. TURN ON FULL COMPILER LOGGING

Read and Use the Wiki
http://wiki.codeblocks.org/index.php?title=Main_Page

Tim S.
Title: Re: trouble in writing the first program
Post by: oBFusCATed on March 05, 2010, 03:42:27 pm
Haha, stahta01's fury is rising day after day  :lol:
Title: Re: trouble in writing the first program
Post by: stahta01 on March 05, 2010, 04:01:20 pm
Haha, stahta01's fury is rising day after day  :lol:

Not really, I decided they were really young(or maybe old); the young have trouble reading lower case letter.
Note, the old also have problem reading really small print.

I assume the above because only the really old or young would NOT know how to use Google to find answers.

Tim S.
Title: Re: trouble in writing the first program
Post by: MortenMacFly on March 05, 2010, 04:03:18 pm
would NOT know how to use Google to find answers.
...not to forget the search box / button on top of the forum. :-(
Title: Re: trouble in writing the first program
Post by: kolahalb on March 05, 2010, 04:54:58 pm
Thank you stahta01,I looked up
http://www.techsupportforum.com/pro/programming/186469-good-free-vista-compatible-c-compiler.html

and downloaded "Dev-C++ 5.0 beta 9.2 (4.9.9.2) (9.0 MB) with Mingw/GCC 3.4.2" and installed it...Will it work as my code block ins not Mingw...?

How to configure code block?
Title: Re: trouble in writing the first program
Post by: oBFusCATed on March 05, 2010, 05:07:20 pm
Read the manual! Learn to search!  :lol:
Title: Re: trouble in writing the first program
Post by: Seronis on March 05, 2010, 05:22:54 pm
Click the WIKI link at the top of this page.  Front page has a link to instructions on installing a compatible compiler.   For the record gcc is at version 4.4.1 on linux and  MS windows so following the wiki on updating that might be a good idea in the long run.  I recommend the installer for TDMs gcc release as the dev who bundles the nightly builds has even switched to using it.