Eclipse CDT using MinGW does not output in console

后端 未结 9 1404
栀梦
栀梦 2020-12-02 11:16

I have a Windows 7 64-bit PC and I am trying to install a free C++ IDE, so I chose to install Eclipse Helios with CDT.

For g++, make and gdb I installed msys and min

9条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-02 11:55

    This worked for me on 64-bit install of Eclipse on Windows 7 using MinGW:

    Right-click on your project. Select "Properties".

    Select the "Run/Debug Settings" Property on the left of the new window.

    In the right window, click on your executable to highlight (ie - Test.exe) and click "Edit".

    In the Environment tab, hit "New"

    Name: PATH
    Value: Path to your MinGW bin directory. (For me this was: C:\devcore\MinGW\bin)

    Click "OK" on all windows to close down.

    Try running again, it should print output to the screen.

提交回复
热议问题