• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

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

TangDN

Member
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-
 
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
 
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:
 
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.
 
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\...
 
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.
 
... 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....

 
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 🙂
 
Back
Top