Eclipse SDK Program "cl" is not found in PATH error

15,654

Solution 1

Try appending the full path to cl to your PATH environment variable in windows http://www.itechtalk.com/thread3595.html just append it by adding a semi colon followed by the path to the existing value in PATH

Solution 2

Project -> properties -> C/C++ Build -> Tool chain editor select the toolchain you have installed as the "current toolchain"

Share:
15,654
Veridian
Author by

Veridian

Updated on June 04, 2022

Comments

  • Veridian
    Veridian almost 2 years

    Hi I am running eclipse sdk in windows and I am trying to compile my C program. But when I build I get the following error:

    **** Internal Builder is used for build               ****
    cl /c /EHs /MD /Zi /nologo /Fosrc\test.obj ..\src\test.c
    Internal Builder: Cannot run program "cl": Launching failed
    Error: Program "cl" is not found in PATH
    

    What is the problem?

  • Tim Wright
    Tim Wright over 12 years
    Just updated my answer, see above, similar procedure follows for other flavours of windows. Also recommend restarting eclipse for it to take effect
  • Veridian
    Veridian over 12 years
    What is the path to cl? I don't know how to find this path
  • Tim Wright
    Tim Wright over 12 years
    Wherever you installed it on your computer, do a file search for cl.exe and you should find it, if not then it hasn't been installed yet
  • Veridian
    Veridian over 12 years
    wow, now all it says is: **** Internal Builder is used for build **** cl /c /EHs /MD /Zi /nologo /Fosrc\test.obj ..\src\test.c Build error occurred, build is stopped
  • Veridian
    Veridian over 12 years
    What makes you think I installed cl.exe, I have no idea what it even is. I was using eclipse in linux and decided to migrate to windows, but as soon as I even tried to run a stupid test.c program I started getting this issues
  • Veridian
    Veridian over 12 years
    btw, i am using 64 bit windows 7 with a core i7
  • Tim Wright
    Tim Wright over 12 years
    It's a command-line C/C++ compiler commonly found on Windows. You could try this max.berger.name/howto/cdt/ar01s03.jsp and use gcc instead instead of cl as the compiler
  • Veridian
    Veridian about 12 years
    I had to use eclipse in Linux instead. I never got it to work.