Game Development Community

ERROR COMPILING "CL.EXE" ?!?!

by Alexander Porter · in Torque Game Engine · 08/08/2002 (2:08 pm) · 13 replies

anyone know what this is about. i cant compile, i get this error at the end

Error executing cl.exe.

and this in the middle

fatal error C1083: Cannot open source file: 'C:\Colossus Development\Head\torque\engine\console\scan.cc': No such file or directory

but i have no such file? or ever have, if someone does have, can i get a copy so i can compile or can someone solve my problem?

I hope so.
Thx
~Alex

#1
08/08/2002 (10:28 pm)
It can't link your code, 'cause it can't open that file to compile it. You definitely should a scan.cc in ~/engine/console/, its part of the console parser I believe.
#2
08/09/2002 (12:07 am)
can u send it to me? my e-mail is aspinator1@attbi.com
it would be greatly appreciated.

~Alex
#3
08/09/2002 (12:33 pm)
Its in the mail.

Your best bet might just be to do another checkout from CVS tho.
#4
08/09/2002 (12:38 pm)
Yeah, it's weird that you don't have that file.
#5
08/09/2002 (12:51 pm)
Now i think of it, there could be a rogue version of the code on some warez site....

I'll have a look around.
#6
08/09/2002 (12:55 pm)
Really? Wow.
#7
08/10/2002 (5:03 pm)
Ok i fixed it but this is weird. every time i recompile the file Scan.cc seems to be deleted. Has anyone heard of this before?

now all i gotta do is add it in every time.

~Alex
#8
12/21/2003 (2:17 pm)
I have had no problems untill today, I did a re-format. Installed VS6 and SP5, applied the reg entry. But now when I go to compile I get...

Compiling...
Error spawning cl.exe

torqueDemo_DEBUG.exe - 1 error(s), 0 warning(s)

Anyone help out on this?
#9
12/21/2003 (2:25 pm)
'Error spawning' usually means the IDE can't find the compiler executable (cl.exe).

Can you compile any other projects? Try opening a simple hello world program.

In my experience, this usually means you're very low on RAM, or your Visual C++ installation is borked somehow.

Edit: Note that this isn't the same as the 'Error executing' message that this thread was originally about.
#10
12/21/2003 (2:44 pm)
I must of had a bad install of VS6. All is good now, thanks.
#11
12/29/2003 (5:56 am)
Cl.exe is the ms visual studio compiler
#12
01/29/2004 (8:06 am)
Ive just got this error :S
#13
06/09/2006 (1:07 pm)
For future reference, if anyone gets 'can't spawn' .exe errors when trying to build:

- First check to make sure the exe paths are defined as mentioned above.
- If the game will still not build try restarting Visual Studio.

I think what is happening is that cl.exe (or other executables) are still open from a previous build attempt and thus windows can't reopen them in order to complete the build. Restarting VC shuts everything down making these exe's available again. (Or you can kill the apps from Taskman.)

-Unk