News:

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

Main Menu

Program won't run

Started by Bit2_Gosu, October 12, 2009, 07:02:52 PM

Previous topic - Next topic

Bit2_Gosu

Hi!

I've just installed CodeBlocks and am desperately trying to get the default main.c "hello world" file running.
I built a Console Project using GCC on Vista and pressed Build and Run but nothing shows in the build log - no console window shows up either. As I was wondering whether GCC actually exists on Windows I tried the same thing using Cygwin - with the same result.

Anybody a clue?

stahta01

Step 1. Install a compiler that works with Vista the newest MinGW GCC 3.4.5 works with Vista.
(The MinGW GCC bundled with the Code::Blocks IDE 8.02 does NOT work with Vista.)
Step 2. Learn the Basics of programing on an beginner site. THIS IS NOT A beginner site.

  • What a IDE is?
  • What an compiler is?
  • What an Library is? And, how to use them.
  • What an Header file is? And, how to use them.

After knowing the basics of C/C++ Programming

Turn ON "full compiler Logging" to help you learn how compiler works.
http://wiki.codeblocks.org/index.php?title=FAQ#Q:_How_do_I_troubleshoot_an_compiler_problem.3F

Read the FAQ and Manual and search the sites before asking questions
http://wiki.codeblocks.org/index.php?title=FAQ
http://wiki.codeblocks.org/index.php?title=Main_Page
http://www.codeblocks.org/docs/main_codeblocks_en.html


Standard Info needed when asking an question
What OS and version? example value: "Windows XP"
Code::Blocks version/SVN? example value "version 8.02" or "SVN 5555"
What Compiler and version? example value "MinGW GCC 3.4.5 (mingw-vista special r3)"

Specific info on problem
What was the error message? Cut and pasted (not reworded by user)


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]