Author Topic: Program won't run  (Read 46431 times)

Offline Bit2_Gosu

  • Single posting newcomer
  • *
  • Posts: 4
Program won't run
« on: October 12, 2009, 07:02:52 pm »
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?

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7576
    • My Best Post
Re: Program won't run
« Reply #1 on: October 12, 2009, 09:01:42 pm »
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++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org