Author Topic: trouble in writing the first program  (Read 6656 times)

Offline kolahalb

  • Single posting newcomer
  • *
  • Posts: 3
trouble in writing the first program
« 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."





Offline kolahalb

  • Single posting newcomer
  • *
  • Posts: 3
Re: trouble in writing the first program
« Reply #1 on: March 05, 2010, 03:35:07 pm »
Sorry...I happened to post...

Please show me how to deal with this...

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
Re: trouble in writing the first program
« Reply #2 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.
« Last Edit: March 05, 2010, 03:53:02 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: trouble in writing the first program
« Reply #3 on: March 05, 2010, 03:42:27 pm »
Haha, stahta01's fury is rising day after day  :lol:
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
Re: trouble in writing the first program
« Reply #4 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.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: trouble in writing the first program
« Reply #5 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. :-(
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline benkenobi01

  • Multiple posting newcomer
  • *
  • Posts: 64
Re: trouble in writing the first program
« Reply #6 on: March 05, 2010, 04:29:13 pm »
dont use Vista, it sucks  :lol:

Offline kolahalb

  • Single posting newcomer
  • *
  • Posts: 3
Re: trouble in writing the first program
« Reply #7 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?

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: trouble in writing the first program
« Reply #8 on: March 05, 2010, 05:07:20 pm »
Read the manual! Learn to search!  :lol:
« Last Edit: March 05, 2010, 05:30:37 pm by oBFusCATed »
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline Seronis

  • Almost regular
  • **
  • Posts: 197
Re: trouble in writing the first program
« Reply #9 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.