Visual C++ -- Usage Help ????

TangDN

Member
Mar 16, 2002
31
0
0
Hi guys, I just installed Visual C++ (1997 edition) onto my computer and I can't seem to get my program to compile. I'm running on Win2kPro and for some odd reason I get --

--------------------------------------------------------------------------
Command line error D2022 : cannot open 'C:\Documents'
Error executing cl.exe.

proj03.obj - 1 error(s), 0 warning(s)

--------------------------------------------------------------------------

My program doesn't need anything from C:\Documents, infact that folder doesn't even exist. but I just created one anyway but it still won't compile past this point. Any clues on what setting makes Visual C++ want to access this folder????? Thanks-
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
Apparently it doesn't like filenames with spaces in it, store your projects somewhere else.
 

bsobel

Moderator Emeritus<br>Elite Member
Dec 9, 2001
13,346
0
0
Like Nothinman posted, it's probably not handling the space in c:\Documents and Settings and failing. Move your project to a path without spaces and try again.
Bill
 

TangDN

Member
Mar 16, 2002
31
0
0
eRrr... this thing sucks. I moved the project folder (by way of creating a whole new project) and it still gets stuck on the same stupid error. Any other suggestions? Else, I'm just gonna have to go buy version 6.0 tommorow :disgust:
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
Instead of wasting the money why not just download cygwin and gcc? In a lot of ways it's more compliant with C++ standards and it's free. You have to download a seperate editor because it's only a CLI compiler, but there's a ton of them to choose from too.
 

CodeJockey

Member
May 1, 2001
177
0
0
I suspect it isn't the folder for the project, but rather the TEMP folder...

Try changing the TEMP environment variable to something like C:\TEMP (make a new dir. if necessary), reboot, and try it again.

I just checked my W2K system, and I have three similar System Environment variables (TEMP, TMP, and TMPDIR), I'm not sure if all three are standard or if I added some for various reasons. You may need to switch all three if you have them. You might be able to simply switch them to the short, non 8.3 versions of the paths, e.g. C:\DOCUME~1\...
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
You're probably right about the TEMP variable, although I seem to remember VS always keeping all the build files in the project directory.

But if he really wants to do C++ he should look into a more standards compliant compiler, older versions of VC are especially bad because they came out before the standard was really standard.
 

thornc

Golden Member
Nov 29, 2000
1,011
0
0
... a little off-topic but here goes:
I currently use Visual C++ vs6sp5 I like the ide very much but I have to agree that the Borland C++ compiler is very
good! So good that I have it installed in together with Visual Studio! I usually use the borland compiler when I need
to create simple/small programs and I don't want to bother with all that bloat of microsoft's compiler....

 

TangDN

Member
Mar 16, 2002
31
0
0
Hi guys. Heh... i gave up on trying to fix my VS C++ 5.0 for now and just finished up my project at school. The class that I'm taking is a OpenGL class that uses VS C++ 6.0 in the lab so that's why I'm really trying to focus on getting my VS to work. I suppose I could use gcc to make this program, but I don't really know how to make a make file to link in all the GLUT libraries (probably really simple, but i don't know... any info?? ) . I'll take a look at Borland C++ tommorow and see if thats an alternative also. Thanks for the replies! more are welcome :)