News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

trouble in writing the first program

Started by kolahalb, March 05, 2010, 03:34:11 PM

Previous topic - Next topic

kolahalb

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."





kolahalb

Sorry...I happened to post...

Please show me how to deal with this...

stahta01

#2
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.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

oBFusCATed

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!]

stahta01

Quote from: oBFusCATed on March 05, 2010, 03:42:27 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++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

MortenMacFly

Quote from: stahta01 on March 05, 2010, 04:01:20 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: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

kolahalb

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?

oBFusCATed

#7
Read the manual! Learn to search!  :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!]

Seronis

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.