By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,910 Members | 1,604 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,910 IT Pros & Developers. It's quick & easy.

Error spawning 'cl.exe'

P: n/a
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
Share this Question
Share on Google+
4 Replies


P: n/a
=?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

P: n/a
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

P: n/a
=?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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.