Build Problem

L

longtungd1

I'm currently taking a Visual C++ course. I have C++ version 6.0 on my
machine.
I set up a basic program per course instructions to simply create a
window with
default toolbar, etc., using App Wizard and ran build from the menu to
create
the .exe.
Got following output:

--------------------Configuration: sam - Win32 Debug--------------------
Copying contents file...
The system cannot find the path specified.
Error executing c:\windows\system32\cmd.exe.

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

The logfile sam.plg is as follows:

-----------------------------------
Build Log

--------------------Configuration: sam - Win32 Debug--------------------

Command Lines
Creating temporary file "C:\DOCUME~1\sam\LOCALS~1\Temp\RSP11.bat" with
contents
[
@echo off
copy "hlp\sam.cnt" .\Debug
]
Creating command line "C:\DOCUME~1\sam\LOCALS~1\Temp\RSP11.bat"
Creating temporary file "C:\DOCUME~1\sam\LOCALS~1\Temp\RSP12.bat" with
contents
[
@echo off
echo. >"hlp\sam.hm"
echo // Commands (ID_* and IDM_*) >>"hlp\sam.hm"
makehm ID_,HID_,0x10000 IDM_,HIDM_,0x10000 resource.h >>"hlp\sam.hm"
echo. >>"hlp\sam.hm"
echo // Prompts (IDP_*) >>"hlp\sam.hm"
makehm IDP_,HIDP_,0x30000 resource.h >>"hlp\sam.hm"
echo. >>"hlp\sam.hm"
echo // Resources (IDR_*) >>"hlp\sam.hm"
makehm IDR_,HIDR_,0x20000 resource.h >>"hlp\sam.hm"
echo. >>"hlp\sam.hm"
echo // Dialogs (IDD_*) >>"hlp\sam.hm"
makehm IDD_,HIDD_,0x20000 resource.h >>"hlp\sam.hm"
echo. >>"hlp\sam.hm"
echo // Frame Controls (IDW_*) >>"hlp\sam.hm"
makehm IDW_,HIDW_,0x50000 resource.h >>"hlp\sam.hm"
]
Creating command line "C:\DOCUME~1\sam\LOCALS~1\Temp\RSP12.bat"
Creating temporary file "C:\DOCUME~1\sam\LOCALS~1\Temp\RSP13.bat" with
contents
[
@echo off
start /wait hcw /C /E /M "hlp\sam.hpj"
if errorlevel 1 goto :Error
if not exist "hlp\sam.hlp" goto :Error
copy "hlp\sam.hlp" .\Debug
goto :done
:Error
echo hlp\sam.hpj(1) : error:
type "hlp\sam.log"
:done
]
Creating command line "C:\DOCUME~1\sam\LOCALS~1\Temp\RSP13.bat"
Creating command line "rc.exe /l 0x409 /fo"Debug/sam.res" /d "_DEBUG" /d
"_AFXDLL" "C:\Program Files\Microsoft Visual Studio\MyProjects\sam\sam.rc""
Copying contents file...
The system cannot find the path specified.
Error executing c:\windows\system32\cmd.exe.
Output Window


Results
sam.exe - 1 error(s), 0 warning(s)
-------------------------------------

The only possibilities I can guess from this are
1) the system can't determine where the "hlp\" path is
2) all the paths except "C:\Program Files\Microsoft Visual
Studio\MyProjects\sam\sam.rc" are in DOS 8.3 format, and the full path
name is throwing the command line, but my OS is XP, so that would not
seem to be it

Unfortunately the log doesn't identify which statement is crashing. Any
suggestions?

Thanks,
Ken
 
C

Christopher Benson-Manica

longtungd1 said:
1) the system can't determine where the "hlp\" path is
2) all the paths except "C:\Program Files\Microsoft Visual
Studio\MyProjects\sam\sam.rc" are in DOS 8.3 format, and the full path
name is throwing the command line, but my OS is XP, so that would not
seem to be it

No way for this group to tell:

http://www.slack.net/~shiva/welcome.txt
http://www.parashift.com/c++-faq-lite/

Your favorite M$ newsgroup would be a far superior source of
information.
 
S

sheep

It seems to that you need to set the path environment variable to where the
cmd.exe is in your system.
Hope this helps.
 
R

rossum

I'm currently taking a Visual C++ course. I have C++ version 6.0 on my
machine.
I set up a basic program per course instructions to simply create a
window with
default toolbar, etc., using App Wizard and ran build from the menu to
create
the .exe.
Got following output:

--------------------Configuration: sam - Win32 Debug--------------------
[snip]

Creating command line "C:\DOCUME~1\sam\LOCALS~1\Temp\RSP13.bat"
Creating command line "rc.exe /l 0x409 /fo"Debug/sam.res" /d "_DEBUG" /d
"_AFXDLL" "C:\Program Files\Microsoft Visual Studio\MyProjects\sam\sam.rc""

1/ I am suspicious of the *two* quotes after /sam.rc If you can trace
back the reference to the .rc (?resourse file?) that might help.

Unfortunately the log doesn't identify which statement is crashing. Any
suggestions?

2/ It won't, this is a build problem, not a compile problem.

3/ Your question is off-topic here, try a newsgroup specifically for
Visual C++ where there will be more people who use that particular
product. I don't.

rossum
 
T

Thomas Matthews

longtungd1 said:
I'm currently taking a Visual C++ course. I have C++ version 6.0 on my
machine.
[Nit picking]
Correction:
I have the Microsoft Visual C++ compiler, version 6.0, on my machine.

The compiler and language are two different objects. I use C++ on my
machine and have these compilers loaded:
Microsoft Visual C++
Borland C++ Builder
Arm Project Manager
GNU G++
There are other compilers than Microsoft's Visual C++.
I set up a basic program per course instructions to simply create a
window with
default toolbar, etc., using App Wizard and ran build from the menu to
create
the .exe.
Sorry, but windowing uses platform specific functions that are not in
the _standard_ language. A very good idea is to ask in a microsoft
newsgroup. See the links in my signature.


--
Thomas Matthews

C++ newsgroup welcome message:
http://www.slack.net/~shiva/welcome.txt
C++ Faq: http://www.parashift.com/c++-faq-lite
C Faq: http://www.eskimo.com/~scs/c-faq/top.html
alt.comp.lang.learn.c-c++ faq:
http://www.comeaucomputing.com/learn/faq/
Other sites:
http://www.josuttis.com -- C++ STL Library book
 
L

longtungd1

Didn't know anyone but MS made Visual C++, so I didn't bother to be
verbose. Glad to see you're on top of those nits.

Thomas said:
longtungd1 said:
I'm currently taking a Visual C++ course. I have C++ version 6.0 on my
machine.

[Nit picking]
Correction:
I have the Microsoft Visual C++ compiler, version 6.0, on my machine.

The compiler and language are two different objects. I use C++ on my
machine and have these compilers loaded:
Microsoft Visual C++
Borland C++ Builder
Arm Project Manager
GNU G++
There are other compilers than Microsoft's Visual C++.
I set up a basic program per course instructions to simply create a
window with
default toolbar, etc., using App Wizard and ran build from the menu
to create
the .exe.

Sorry, but windowing uses platform specific functions that are not in
the _standard_ language. A very good idea is to ask in a microsoft
newsgroup. See the links in my signature.
 
J

Jerry Coffin

Thomas Matthews said:
longtungd1 said:
I'm currently taking a Visual C++ course. I have C++ version 6.0 on my
machine.
[Nit picking]
Correction:
I have the Microsoft Visual C++ compiler, version 6.0, on my machine.

If you want to nit pick, that's the version number of the environment,
not the compiler. The compiler proper would be somewhere around
version 12.

In fact, there was never a version 6 of Microsoft's C++ compiler.
Versions 1 through 3 of "Microsoft C" were really Lattice C with
different packaging. Versions 4 though 6 were written by Microsoft,
but compiled only C. Only versions 7 and newer claim to compile C++
(and what version 7 compiled barely qualifies as C++ any more).
 
T

Thomas Matthews

Jerry said:
Thomas Matthews said:
longtungd1 said:
I'm currently taking a Visual C++ course. I have C++ version 6.0 on my
machine.

[Nit picking]
Correction:
I have the Microsoft Visual C++ compiler, version 6.0, on my machine.


If you want to nit pick, that's the version number of the environment,
not the compiler. The compiler proper would be somewhere around
version 12.

In fact, there was never a version 6 of Microsoft's C++ compiler.
Versions 1 through 3 of "Microsoft C" were really Lattice C with
different packaging. Versions 4 though 6 were written by Microsoft,
but compiled only C. Only versions 7 and newer claim to compile C++
(and what version 7 compiled barely qualifies as C++ any more).

I guess I need to clarify my nit picking. The second sentence
I interpreted as the OP has version 6.0 of the C++ language
installed on his machine. My nit pick was about there not
being a version 6.0 of C++ language and that the language
and translators were two very different objects.

--
Thomas Matthews

C++ newsgroup welcome message:
http://www.slack.net/~shiva/welcome.txt
C++ Faq: http://www.parashift.com/c++-faq-lite
C Faq: http://www.eskimo.com/~scs/c-faq/top.html
alt.comp.lang.learn.c-c++ faq:
http://www.comeaucomputing.com/learn/faq/
Other sites:
http://www.josuttis.com -- C++ STL Library book
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,743
Messages
2,569,478
Members
44,899
Latest member
RodneyMcAu

Latest Threads

Top