Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > Build Problem

Reply
Thread Tools

Build Problem

 
 
longtungd1
Guest
Posts: n/a
 
      08-02-2004
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
 
Reply With Quote
 
 
 
 
Christopher Benson-Manica
Guest
Posts: n/a
 
      08-02-2004
longtungd1 <> spoke thus:

> 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.

--
Christopher Benson-Manica | I *should* know what I'm talking about - if I
ataru(at)cyberspace.org | don't, I need to know. Flames welcome.
 
Reply With Quote
 
 
 
 
sheep
Guest
Posts: n/a
 
      08-02-2004
It seems to that you need to set the path environment variable to where the
cmd.exe is in your system.
Hope this helps.

 
Reply With Quote
 
rossum
Guest
Posts: n/a
 
      08-02-2004
On Mon, 02 Aug 2004 16:21:20 -0400, longtungd1
<> wrote:

>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



>
>Thanks,
>Ken


--

The ultimate truth is that there is no Ultimate Truth
 
Reply With Quote
 
Thomas Matthews
Guest
Posts: n/a
 
      08-03-2004
longtungd1 wrote:
> 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

 
Reply With Quote
 
longtungd1
Guest
Posts: n/a
 
      08-03-2004
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 Matthews wrote:

> longtungd1 wrote:
>
>> 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.
>
>

 
Reply With Quote
 
Jerry Coffin
Guest
Posts: n/a
 
      08-03-2004
Thomas Matthews <> wrote in message news:<PrQPc.131$ >...
> longtungd1 wrote:
> > 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).

--
Later,
Jerry.

The universe is a figment of its own imagination.
 
Reply With Quote
 
Thomas Matthews
Guest
Posts: n/a
 
      08-04-2004
Jerry Coffin wrote:
> Thomas Matthews <> wrote in message news:<PrQPc.131$ >...
>
>>longtungd1 wrote:
>>
>>>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).
>
> --
> Later,
> Jerry.


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

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Not Buid errors when build, yes build erros when deploy, why? Pedro Mir ASP .Net 2 06-20-2006 02:26 AM
Build a Better Blair (like Build a Better Bush, only better) Kenny Computer Support 0 05-06-2005 04:50 AM
SWsoft Acronis Disk Director Suite 9.0 Build 508, Acronis OS Selector 8.0 Build 917, Acronis Partition Expert 2003 Build 292, Acronis Power Utilities 2004 Build 502, F-SECURE.ANTI vIRUS.PROXY v1.10.17.WINALL, F-SECURE.ANTI vIRUS v5.50.10260 for CITRI vvcd Computer Support 0 09-25-2004 01:38 AM
How to build ASP.NET projects on a separate build machine? Vagif Abilov ASP .Net 2 07-07-2004 04:34 PM
Python 2.3.3 : Win32 build vs Cygwin build performance ? Nicolas Lehuen Python 3 01-28-2004 07:30 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57