Find the answer to your Linux question:
Results 1 to 6 of 6
I have tried a few and can't get them to work. I liked code blocks but when i ran my program nothing happened it was the Hello world program they ...
  1. #1
    Just Joined!
    Join Date
    Sep 2009
    Posts
    23

    Help with Code:Blocks

    I have tried a few and can't get them to work. I liked code blocks but when i ran my program nothing happened it was the Hello world program they auto generate i just wanted to test it out. There was no output. the program ran and nothing happened.

    I am used to Visual Studio where the program is run in the command prompt but nothing happens in Code:Blocks. The program compiles but i don't know if its even run. Code:Blocks had the Intel C++ compiler selected and it couldn't find it so I switched to the GNU compiler. I don't know it that helps

    I am not a serious C++ programmer I just like to play around with it.

  2. #2
    Linux Engineer RobinVossen's Avatar
    Join Date
    Aug 2007
    Location
    The Netherlands
    Posts
    1,422
    What have you done exactly?
    Since if you say it didnt run well what did you do?
    Did you press the run button which one etc
    New Users, please read this..
    Google first, then ask..

  3. #3
    Just Joined!
    Join Date
    Sep 2009
    Posts
    23
    i hit the compile button then the run button I tried the compile and run button. I don't know where to even look for the output of the program.

  4. #4
    Linux Engineer RobinVossen's Avatar
    Join Date
    Aug 2007
    Location
    The Netherlands
    Posts
    1,422
    It should just pop up a windows that loads your program.
    Also it shows the return value by default..
    New Users, please read this..
    Google first, then ask..

  5. #5
    Just Joined!
    Join Date
    Sep 2009
    Posts
    23
    No it doesn't do that I don't even know what to search for in google to find an answer.

  6. #6
    Just Joined! mrrangerman's Avatar
    Join Date
    Jul 2008
    Posts
    34
    What programming editor are you using? If you are using Geany, after you save the program under the Build tab press Compile, then Build, then Execute.

    If you are using the command line after compiling/linking the source from a shell within the directory the program is, you can run it by typing ./filename where filename is put the program name.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...