How can I register ConEmu to run with DevCpp in Windows?

606 views Asked by At

I've installed ConEmu console, I've registered ConEmu as the default console for Windows system, but wxDev-C++ is still triggering the standard cmd.exe.

How can I bind ConEmu to DevCpp?

(The installed version of wxDev-C++ is 7.4.2.569, and the system is an old Windows XP).

EDIT1: Now I have attached DevCpp to ConEmu by Settings/Features/Integration", then "Force ConEmu as default terminal for console" (checkboxed), and in "List of hooked executables" I added devcpp.exe.

The result is that DevCpp triggers ConEmu, but the output of my test program is not shown.

The C program is the following:

// c:/cproj/experiment.c
#include <stdio.h>
int main(void) {
   for (long long i= 0; i<20; i++)
      printf("%d ",i);
   getchar();
   return 0;
}

In normal cmd.exe, it works well:

0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19

When ConEmu is active, the ConEmu window has title "cmd.exe".
The ConEmu subwindow has title: "<1>.exe" and shows:

Microsoft Windows XP [VersiĆ³n 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\cproj>

The "real" console shows exactly the same output.

EDIT2: DevCpp shows me the following information:

Compiler: Default GCC compiler
Executing  gcc.exe...
gcc.exe "C:\cproj\experiment.c" -o "nul"   -std=c99 -pedantic  -I"C:\Dev-Cpp\MinGW32\include"  -L"C:\Dev-Cpp\lib\wx\gcc_lib" -L"C:\Dev-Cpp\lib" -L"C:\Dev-Cpp\MinGW32\lib" 
nul.exe: final close failed: File truncated
collect2: ld returned 1 exit status

Execution terminated

EDIT3 (I solved: see my answer below).

1

There are 1 answers

4
pablo1977 On

I have solved the problem.

In up-right corner of ConEmu there is an icon named BufferHeight mode....
This icon must be pressed in order to select BufferHeight mode is ON (scrolling is enabled).

Under this mode, the program runs as expected, showing the numbers 0 to 19.