Thread: A Beginner's Inquiry: Missing output "Hello World!" in Code blocks compiler

  1. #1
    Registered User
    Join Date
    Jan 2013
    Posts
    4

    Question A Beginner's Inquiry: Missing output "Hello World!" in Code blocks compiler

    Problem:

    I have setup code blocks and this is just the main cpp page which is generated after you create a new project. There is no error in the build log and build messages and the compiler shows it has been processed but does not show the output "Hello World!". I kept re-installing code blocks and followed each step of the process to install and create a new project but still I cannot get the output - "Hello World!"

    I have attached a picture to illustrate my problem.

    Last time I checked the debugger it gave me this message:

    "Debugger name and version: GNU gdb (GDB) 7.5

    Trying to pause the running process...
    Error creating process C:\Users\asus\Documents\main\bin\Debug\main.exe, (error 5).
    The program is not being run.
    Debugger finished with status 0"

    I tried searching online for what this message might mean but could not find anything substantial. Please if anyone has experienced this problem and knows how to solve this problem, do share your information, ideas or suggestions.
    Attached Images Attached Images A Beginner's Inquiry: Missing output "Hello World!" in Code blocks compiler-picture1-jpg 

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    Download binary

    Which one did you download?
    codeblocks-12.11-setup.exe 28 Nov 2012 28.2 MB
    codeblocks-12.11mingw-setup.exe 28 Nov 2012 96.8 MB
    You need the larger one (at least once), since this is both the compiler AND the IDE.

    Do you have any virus scanners running?
    Some of them can be very picky about programs which create executable files.

    You might want to put all your coding in say C:\Users\asus\Documents\code and add an exception to your virus scanner to stop it scanning anything beneath that directory.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Registered User
    Join Date
    Jan 2013
    Posts
    4
    I downloaded the codeblocks-12.11mingw-setup.exe.
    Yes i have a kaspersky internet security 2013 running...
    How do you put an exception to stop scanning that file? I will see if its possible...
    Thanks for your suggestion...

  4. #4
    Registered User
    Join Date
    May 2009
    Posts
    4,183
    You might try changing the "Build Target" to "release" and see if the AV software is just complaining about GDB.

    Tim S.
    "...a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are,in short, a perfect match.." Bill Bryson

  5. #5
    Registered User
    Join Date
    Jan 2013
    Posts
    4
    I tried changing the setting of build target to release but still not showing. It is indeed an Antivirus software complaining about the compiler, because I disabled my Anti virus for a little while and the output was shown. However, I can't find a way to make an exception for code blocks so I can see the output even while my anti virus is running. Any idea how to make that exception?

  6. #6
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    Found something after a very brief search online (hint: kaspersky internet security add directory exception)
    How to manage exclusion rules in Kaspersky Internet Security 2010?
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  7. #7
    Registered User
    Join Date
    Jan 2013
    Posts
    4
    I was looking in that section earlier before you posted but this link is just what I need and tells me exactly what needs to be done.
    Yes it works!
    Thanks a lot dude. Your seriously a life saver. Now i can enjoy programming.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Code::Blocks has Alzheimer's: "casting" warning
    By gandsnut in forum C Programming
    Replies: 2
    Last Post: 07-06-2012, 02:57 AM
  2. Replies: 8
    Last Post: 10-25-2010, 11:43 PM
  3. Output from Code::Blocks Compiler
    By zilefac in forum C++ Programming
    Replies: 4
    Last Post: 08-21-2010, 01:19 PM
  4. "CWnd"-"HWnd","CBitmap"-"HBitmap"...., What is mean by "
    By L.O.K. in forum Windows Programming
    Replies: 2
    Last Post: 12-04-2002, 07:59 AM
  5. Beginner in VC++, A simple "Hello world" progarm.
    By zahid in forum Windows Programming
    Replies: 12
    Last Post: 12-20-2001, 01:02 AM