Build Problem

Discussion in 'C++' started by longtungd1, Aug 2, 2004.

  1. longtungd1

    longtungd1 Guest

    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
    longtungd1, Aug 2, 2004
    #1
    1. Advertising

  2. 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.
    Christopher Benson-Manica, Aug 2, 2004
    #2
    1. Advertising

  3. longtungd1

    sheep Guest

    It seems to that you need to set the path environment variable to where the
    cmd.exe is in your system.
    Hope this helps.
    sheep, Aug 2, 2004
    #3
  4. longtungd1

    rossum Guest

    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
    rossum, Aug 2, 2004
    #4
  5. 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
    Thomas Matthews, Aug 3, 2004
    #5
  6. longtungd1

    longtungd1 Guest

    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.
    >
    >
    longtungd1, Aug 3, 2004
    #6
  7. longtungd1

    Jerry Coffin Guest

    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.
    Jerry Coffin, Aug 4, 2004
    #7
  8. 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
    Thomas Matthews, Aug 4, 2004
    #8
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Vagif Abilov
    Replies:
    2
    Views:
    548
    Vagif Abilov
    Jul 7, 2004
  2. Pedro Mir
    Replies:
    2
    Views:
    431
    Winista
    Jun 20, 2006
  3. Nicolas Lehuen
    Replies:
    3
    Views:
    701
    Nicolas Lehuen
    Jan 28, 2004
  4. Toon Knapen
    Replies:
    2
    Views:
    354
    Toon Knapen
    May 17, 2006
  5. Guest
    Replies:
    6
    Views:
    14,114
    Sravani
    May 19, 2012
Loading...

Share This Page