running eclipse for c and c++

This is a discussion on running eclipse for c and c++ within the Windows Programming forums, part of the Platform Specific Boards category; i have installed eclipse and also MinGw. While building my project i have MinGw shown in the Toolchains . however ...

  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 wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,742
    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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  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 wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,742
    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.
    Attached Images Attached Images  
    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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

Popular pages Recent additions subscribe to a feed

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