Author Topic: Not able compile programs with Code:blocks  (Read 13177 times)

Offline speedy

  • Single posting newcomer
  • *
  • Posts: 3
Not able compile programs with Code:blocks
« on: October 29, 2009, 07:02:50 pm »
I am new to Code:Blocks.
I started a new project,created a C file,typed the program but when I compile it nothing is happening.
When I press build and then execute nothing happens.
I even tried C++ program but the same problem crops up.
What should I do to compile and run the program properly?
Can somebody please guide me through.
It would be of great help.
« Last Edit: October 29, 2009, 07:04:36 pm by speedy »

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
Re: Not able compile programs with Code:blocks
« Reply #1 on: October 29, 2009, 07:08:54 pm »
What OS?
What version/SVN of Code::Blocks?
What compiler and version of compiler?

If Vista or Windows 7 the compiler packaged with Code::Blocks 8.02 does not work with that OS!!

Tim S.
« Last Edit: October 29, 2009, 07:12:31 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 speedy

  • Single posting newcomer
  • *
  • Posts: 3
Re: Not able compile programs with Code:blocks
« Reply #2 on: October 30, 2009, 03:05:03 pm »
I am using Windows XP Professional 32bit OS.
Version of Code:Blocks is 8.02
I used GNU GCC compiler,Boroland C/C++ compiler5.5 .Intel C/C++ compiler.
But it didn't work.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
Re: Not able compile programs with Code:blocks
« Reply #3 on: October 30, 2009, 03:33:52 pm »
I am using Windows XP Professional 32bit OS.
Version of Code:Blocks is 8.02
I used GNU GCC compiler,Boroland C/C++ compiler5.5 .Intel C/C++ compiler.
But it didn't work.

What compiler did/do you have installed?
What is the installation path to the compiler?

Tim S.
« Last Edit: October 30, 2009, 04:00:19 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 speedy

  • Single posting newcomer
  • *
  • Posts: 3
Re: Not able compile programs with Code:blocks
« Reply #4 on: October 31, 2009, 07:31:38 am »
Got it.
I created a C file from the main page,wrote the code and tried to compile it but it didn't work.
But when I opened create a project and selected console application and did the same it worked.


braille

  • Guest
Re: Not able compile programs with Code:blocks
« Reply #5 on: November 07, 2009, 11:35:07 pm »
I was told that windows 7 Professional can run xp as an alt OS and that I would be able to run the codeblocks compiler if I bought that particular version of windows 7 (professional). Do you know if that is true, I'm mildly irritated with Vista at this point.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
Re: Not able compile programs with Code:blocks
« Reply #6 on: November 08, 2009, 04:24:33 am »
I was told that windows 7 Professional can run xp as an alt OS and that I would be able to run the codeblocks compiler if I bought that particular version of windows 7 (professional). Do you know if that is true, I'm mildly irritated with Vista at this point.

Google something like "windows 7 XP Mode" It has been stated in other site that only certain INTEL CPUs support XP Mode.

NOTE: The site is for programmers to ask questions about Code::Blocks; NOT, for beginners to ask questions about the basics of programming.

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 stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
Re: Not able compile programs with Code:blocks
« Reply #7 on: November 08, 2009, 04:29:21 am »
Got it.
I created a C file from the main page,wrote the code and tried to compile it but it didn't work.
But when I opened create a project and selected console application and did the same it worked.

Do you know what an Compiler is?
Your words imply that you are a newbie at programming and support groups.

Edit: If you have an compiler reading link might help you.
http://wiki.codeblocks.org/index.php?title=FAQ#Q:_How_do_I_troubleshoot_an_compiler_problem.3F

What compiler did/do you have installed?
What is the installation path to the compiler?

Tim S.
I give up helping you; because you can NOT read and answer simple questions.

Tim S.
« Last Edit: November 08, 2009, 04:31:11 am 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