?
Solved

visual c++ simple console application - error

Posted on 1998-07-28
2
Medium Priority
?
172 Views
Last Modified: 2010-04-10
Followed 3 separate books - still can't get the simplest Hello World application to compile without errors. Made the project, set all the options (I hope), been teaching C++ for four years.....please help someone. Error msg is "error spawning cl.exe"
0
Comment
Question by:pswift
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
2 Comments
 
LVL 22

Accepted Solution

by:
nietod earned 100 total points
ID: 1168869
cl.exe is the compiler program.  The VC++ IDE (integrated development Environment) runs this seperate program to do the compile.  This sounds like it couldnt  find the compiler.  Is your path set up right?  Is VC++ newly installed?
0
 
LVL 22

Expert Comment

by:nietod
ID: 1168870
If you are running the compiler from the command line (DOS prompt) or from a batch file you need to make sure the path and other environment variables are set correctly.  This is done by running a batchfile called VCVARS32.BAT.  It should be in one of the VC directories.

If you are running the compiler from within the graphical IDE of VC++, then you need to make sure that VC++'s paths are set correctly.  To do this go to "Tools" menu->"Options" item.  In the dialog that appears, select the "Directories" tab.  In "show directories for:" select "executable files".  Then look at the list of directories and make sure that there is one listed for the BIN directory, like "C:\PROGRAM FILES\DEVSTUDIO\VC\BIN"  (You path may need to be different than mine.)
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will show you some of the more useful Standard Template Library (STL) algorithms through the use of working examples.  You will learn about how these algorithms fit into the STL architecture, how they work with STL containers, and why t…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

719 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question