The Software Parts Manager(SPM) cannot find CL.EXE

Article ID: 899
Last updated: 05 Feb, 2008
Article ID: 899
Last updated: 05 Feb, 2008
Revision: 1
Views: 2967
Posted: 04 Aug, 1997
by Dean J.
Updated: 05 Feb, 2008
by Dean J.
Problem


The configuration process in the SPM dies with the error:
We will invoke the compiler like this: (.cpp may change if needed)

cl -c something.cpp

... and the link step like this:

cl something.obj

We will start by trying to discover which file extension
your compiler accepts. This may take a few moments...

Trying suffix .cpp ...no
Trying suffix .C ...no
Trying suffix .cc ...no
Trying suffix .cxx ...no

*** Something went wrong. Probably one of the following:
*** o cl does not exist;
*** o cl is not in your path;
*** o You do not have write permission in the current directory;
*** o Your compiler does not like any of the file suffixes I tried.

Here are the outputs from the attempts to compile:

Trying to compile with suffix .cpp
cl: configCompile: rwsetup 2288: not found
Trying to compile with suffix .C
cl: configCompile: rwsetup 2288: not found
Trying to compile with suffix .cc
cl: configCompile: rwsetup 2288: not found

Trying to compile with suffix .cxx
cl: configCompile: rwsetup 2288: not found

exiting rwenv: ERROR 1




Cause


The Microsoft C++ Compiler cannot be found in your current path.


Action


Microsoft provides a file called vcvars32.bat that will correctly configure your environment for the Microsoft C++ Compiler. You can find out the location of this file by performing a search in Windows Explorer on Windows 95 or in Windows NT Explorer on Windows NT.

Once you have found the location of this executable, you should start a Command Prompt, change into this directory and then execute the vcvars32.bat batch file.

On Windows 95, if you get errors about Out of Environment Space, you can fix these errors by starting another environment with enough environmental space as follows:

 

      C:COMMAND.COM /E:8192 

Now re-run vcvars32.bat.

Change into the SPM directory and try running cl to make sure everything works:

 

       C:> cd spm       C:spm> cl 

 

If this process works, then you can start the Software Parts Manager from the command prompt and rebuild your product.

 

         C:spm> partmgr 

Another, simple way to correctly configure your environment is to uninstall and reinstall the Microsoft Visual C++ compiler. A check box will pop up asking you if you want to install the VCVARS32.bat environment variable in your path. Check the box and continue with the setup process.

If it does not contact your systems administrator or Microsoft Technical support for instructions on how to setup your Microsoft C++ Compiler to run from the command line.

 

This article was:   Helpful | Not helpful
Report an issue
Article ID: 899
Last updated: 05 Feb, 2008
Revision: 1
Views: 2967
Posted: 04 Aug, 1997 by Dean J.
Updated: 05 Feb, 2008 by Dean J.

Others in this category