473,387 Members | 1,569 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Error spawning 'cl.exe'

Hi,

I was just shifted to a new domain on my network and all of a sudden the
project i was working on gives an error - Error spawning "cl.exe".

The project is actually a C DLL and a C# Library together.

What could be the reason?
Nov 16 '05 #1
4 3238
=?Utf-8?B?R2VSbUlj?= <Ge****@discussions.microsoft.com> wrote in
news:02**********************************@microsof t.com:
Hi,

I was just shifted to a new domain on my network and all of a
sudden the project i was working on gives an error - Error
spawning "cl.exe".

The project is actually a C DLL and a C# Library together.

What could be the reason?


My best guesses:

- Permissions problem. Your code can find cl.exe, but does not
have permission to execute it.

- Your code cannot find cl.exe. If it's on a network share, this
may be due to a network drive not being mapped, or a change in the
mapped path or UNC path that cl.exe is on. If cl.exe is on your
local machine, make sure you are executing it using the full path
name, and are not using a relative path or the system's PATH
environmental variable to find it.

--
Hope this helps.

Chris.
-------------
C.R. Timmons Consulting, Inc.
http://www.crtimmonsinc.com/
Nov 16 '05 #2
Hi Chris,

How do i check if my code has the permission to execute cl.exe?

I am doing all these through the Visual Studio 2003 IDE. Cl.exe is in the
classpath and the path in the Environment Variables.

Thanks
Nov 16 '05 #3
=?Utf-8?B?R2VSbUlj?= <Ge****@discussions.microsoft.com> wrote in
news:47**********************************@microsof t.com:
Hi Chris,

How do i check if my code has the permission to execute cl.exe?

I am doing all these through the Visual Studio 2003 IDE. Cl.exe
is in the classpath and the path in the Environment Variables.


I'm not clear on exactly how you are running cl.exe. Is it being
done from C# code, or from the Visual Studio IDE?

Can you run cl.exe from the command line? If so, it probably isn't a
permissions problem.

Instead of relying on the environment path to find cl.exe, try using
the full path to cl.exe when spawning it.

--
Hope this helps.

Chris.
-------------
C.R. Timmons Consulting, Inc.
http://www.crtimmonsinc.com/
Nov 16 '05 #4
Hi Chris,

I figured out the problem and now my code works fine. This is what i did -

Tools-> Options -> Projects -> VC++ Directories and included the path of the
VC7 directory which is under the Program Files. Things works fine now.

Thanks a lot

Nov 16 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Jimmie | last post by:
Hi, I am just starting to use MFC for visual c++, i am also using windows xp, and have been trying to do some tutorials, on MFC but everytime i compile the program i get this error. ...
1
by: Hervet | last post by:
Hi, I'm a newbie :o) Every time I try to compile , I get this message : Project : error PRJ0003 : Error spawning 'VCDeploy.exe'. Thanks in advance for your help Hervé -
3
by: ranjeet.gupta | last post by:
Hi All, Can any one help me out, by making me clear, Exactly what does the below error means. Compiling... Error spawning cl.exe Creating browse info file... Error spawning bscmake.exe
1
by: morphius | last post by:
Does anybody know what this means? *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it!
1
by: Russ Green | last post by:
I hav previosuly had VB.NET 2003 Standard installed on my machine and it works great. Yesterday I installed C++.NET 2003 Standard and starting playing with it. Hardly surprisingly it also worked...
4
by: Marianne | last post by:
Had 1.1 configured so that a process I was launching on a web server would have access to a domain controller in a different domain. This was accomplished by setting the <processModel> tag in...
7
by: kris_scheyer | last post by:
Hi, I have a little .exe file that I want the C# code behind of my web application to execute as a different user. The executable is supposed to take a screenshot of the server's display and...
0
by: plains5728 | last post by:
I am having problems building a simple cpp application in VS.Net 2003. I opened a makefile application and added a cpp file. When I build, I get There is no build command line to execute....
1
by: Mrown | last post by:
Hi, I'm currently writing a python program that relies on a CLI program. What I'm currently doing is using subprocess.Popen on Python 2.5.1. Here's the line that I'm currently running: child...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.