User forums > Using Code::Blocks

console app in windows xp doesn't run properly

<< < (2/2)

rhf:
itbhp,
It looks like it is running.  Are you sure the output window is not closing?
You might try: Project->Properties->Build targets
        and under Type: Console application:  check 'Pause when execution ends'.

itbhp:
rhf said

--- Quote ---You might try: Project->Properties->Build targets
        and under Type: Console application:  check 'Pause when execution ends'.

--- End quote ---

It was already checked.

I tried also to launch the exact command that codeblocks launches when I click the "Run" button, following these steps:

1. Launch Command prompt
2. change directory into "C:\Programmi\CodeBlocks"
3. C:\Programmi\CodeBlocks> cb_console_runner.exe "C:\Documents and Settings\paolo\Documenti\My_sources\c++\sum_even_values_fibonacci_seq.exe"

The output was the same:

Process returned 0 <0x0> execution time : 0.109 s
Press any key to continue.

Maybe this cb_console_runner doesn't work as it should.

itbhp:
I tried to uncheck "Project->Properties->Build targets and under Type: Console application:   'Pause when execution ends'. "

Now project works fine and to see the output of the program I have just to add these lines to my code:


--- Code: ---system("PAUSE"); // or cin.get();

--- End code ---


By the way simple file that doesn't belong to any project still doesn't run properly.

Thanks for help.

itbhp:
News:

After I renamed C:\Programmi\Codeblocks\cb_console_runner.exe in C:\Programmi\Codeblocks\cb_console_runner-old.exe, now also simple cpp file that doesn't belong to any project runs properly.

 :o



Navigation

[0] Message Index

[*] Previous page

Go to full version