Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

visual studio 6.0 problems

Status
Not open for further replies.

jxxnorth

Programmer
Feb 19, 2002
12
US
I just did a standard visual studio 6.0 intall on a new dell laptop running xp home. I'm migrating from win 98.

I'm having 2 problems so far. I was using C/C++ IDE with the make file project option to cross compile with gcc. Now, when I open the project, the rebuild button on the tool bar is disabled, and when I press the "compile" button, I get the following error:

nmake is not recognized as an external command.

I tried to build a standard "Hello World" win32 command line app, but when I try to compile and execute ("!") I get:

error spawning cl.exe

Could anyone lend me a hand?
 
you should put the full path nmake in the PATH system variable

Ion Filipski
1c.bmp
 
Sorry for my ignorance. Does that belong in the autoexec.bat file?

PATH = c:/.../nmake.exe
 
Ok, I set the path in autoexec like so...

Set Path = (path to nmake)

restarted. Now I get an extra line in vc error output when executing the make file project:

'nmake' is not recognized as an internal or external command, operable program or batch file.
Error executing c:\windows\sustem32\cmd.exe
 
go to your control panel->System, then go to the Advanced tab, then click Environment Variables, then in the System Variables listbox at the bottom of the tab, find PATH, and click edit to add the new path onto the end of the existing path

bdiamond
 
Ok, I went to the system options in the control panel, edited the environment variable for 'Path' by adding:
...;c:/program files/microsoft visual studio/vc98/bin

Restarted. I get the same compile errors as listed above for both projects.
 
I think I see the problem. When I look at the directories in Tools>Options>Directories, I see that it somehow decided to choose a path to the installation cd rather than the hard drive for the include, binary and lib files.

I'll try to locate and change these manually to see if it solves the problem.
 
don't include executable name in the path, include only folder names.

Ion Filipski
1c.bmp
 
Thanks for all of your help. Changing the paths solved my problem.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top