Thread: running eclipse for c and c++

  1. #1
    Registered User
    Join Date
    Jun 2010
    Posts
    5

    running eclipse for c and c++

    i have installed eclipse and also MinGw. While building my project i have MinGw shown
    in the Toolchains . however after the project wizard completes I am shown the following
    output in the console tab----------

    **** Rebuild of configuration Debug for project test5 ****

    **** Internal Builder is used for build ****
    g++ -O0 -g3 -Wall -c -fmessage-length=0 -osrc\test5.o ..\src\test5.cpp
    Internal Builder: Cannot run program "g++": Launching failed
    Build error occurred, build is stopped
    Time consumed: 78 ms.

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,656
    At a console prompt, type
    echo $PATH

    Is the MinGW directory shown here?
    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
    Jun 2010
    Posts
    5
    i m using Windows 7.
    do i need to set path in the path variable

  4. #4
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,656
    Yes, something like this - find the system properties, then add a new environment variable called PATH.

    Once done, run a new cmd.exe, and then type "echo $PATH" to make sure it is set as expected.
    Then re-start eclipse.
    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.

Popular pages Recent additions subscribe to a feed