Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


Error spawning cl.exe?!

This topic is 5580 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Never before have I encountered this error. I guess thats because I'm new to programming though. I'm doing the exercise for Chapter 5: Controlling Program Flow in C++ For Dummies. Here is the code in the book:
#include <stdio.h>
#include <iostream.h>

int main(int arg, char* pszArgs[])
//input first argument...

int arg1;
cout << "Enter arg1: ";
cin >> arg1;

//...and the second

int arg2;
cout<< "Enter arg2: ";
cin >> arg2;

//now decide what to do:

if (arg1 > arg2)
cout<< "argument 1 is greater than argument 2\n";
cout <<"argument 1 is not greater than argument 2\n";
return 0;
I click COMPILE and i get Error spawning cl.exe! What am I doing wrong? [edited by - Stormrage on June 16, 2003 5:01:17 PM]

Share this post

Link to post
Share on other sites
Well, it definitely isn''t a problem with your code. cl.exe is the compiler that MSVC++ uses.

It sounds like your installation is somehow corrupted. If I were you, I would uninstall MSVC++, then reinstall it from the installation CDs.

How appropriate. You fight like a cow.

Share this post

Link to post
Share on other sites
Guest Anonymous Poster
Had this error ... it will pop up if you have a syntax error of some sort (didn''t found out what kind of [something todo with variables - i think]). Check your syntax. (Rebooting and other crazy stuff wont help)

As this program is short ... start to remove instructions until error is gone (hard way - but it works)

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!