Menu

Compile Errors w/ VC7.1

2005-10-05
2013-04-11
  • Henry Lafleur

    Henry Lafleur - 2005-10-05

    I am getting compile errors with VC7 (version reported 13.10.3077):

    C:\Program Files\SqlDump\sources>nmake

    Microsoft (R) Program Maintenance Utility Version 7.10.3077
    Copyright (C) Microsoft Corporation.  All rights reserved.

            cd src
            nmake /nologo all
    WARNING: INSTALL_DIR not defined, defaulting to C:\SqlDump
            cl /nologo /I.. /I. /I"C:\Program Files\Microsoft Visual Studio .NET 200
    3\VC7\ATLMFC\INCLUDE;C:\Program Files\Microsoft Visual Studio .NET 2003\VC7\INCL
    UDE;C:\Program Files\Microsoft Visual Studio .NET 2003\VC7\PlatformSDK\include\p
    rerelease;C:\Program Files\Microsoft Visual Studio .NET 2003\VC7\PlatformSDK\inc
    lude;C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\include;C:\Prog
    ram Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\include\;C:\Program Files\R
    ogue Wave\Stingray Studio\Include;C:\Program Files\Rogue Wave\Stingray Studio\Re
    gex\Include" /O2  /D_WIN32_IE=0x0400 /GA /c /Fogetpw.obj /Tp getpw.c
    getpw.c
    getpw.c(21) : fatal error C1081: 'C:\Program Files\Microsoft Visual Studio .NET
    2003\VC7\ATLMFC\INCLUDE;C:\Program Files\Microsoft Visual Studio .NET 2003\VC7\I
    NCLUDE;C:\Program Files\Microsoft Visual Studio .NET 2003\VC7\PlatformSDK\includ
    e\prerelease;C:\Program Files\Microsoft Visual Studio .NET 2003\VC7\PlatformSDK\ include;C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\include;C:\P
    rogram Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\include\;C:\Program File
    s\Rogue Wave\Stingray Studio\Include;C:\Program Files\Rogue Wave\': file name ex
    ceeds 512 bytes in length
    NMAKE : fatal error U1077: 'cl' : return code '0x2'
    Stop.
    NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio .NET 2003\ VC7\BIN\nmake.exe"' : return code '0x2'
    Stop.

    C:\Program Files\SqlDump\sources>

    So I modify my include path and get this:

    C:\Program Files\SqlDump\sources>nmake

    Microsoft (R) Program Maintenance Utility Version 7.10.3077
    Copyright (C) Microsoft Corporation.  All rights reserved.

            cd src
            nmake /nologo all
    WARNING: INSTALL_DIR not defined, defaulting to C:\SqlDump
            cl /nologo /I.. /I. /I"C:\progra~1\MICROS~3.NET\VC7\ATLMFC\INCLUDE;C:\pr
    ogra~1\MICROS~3.NET\VC7\INCLUDE;C:\progra~1\MICROS~3.NET\VC7\PlatformSDK\include
    \prerelease;C:\progra~1\MICROS~3.NET\VC7\PlatformSDK\include;C:\progra~1\MICROS~
    3.NET\SDK\v1.1\include;C:\progra~1\MICROS~3.NET\SDK\v1.1\include\;C:\progra~1\RO
    GUEW~1\STINGR~1\Include;C:\progra~1\ROGUEW~1\" /O2  /D_WIN32_IE=0x0400 /GA /c /F
    ogetpw.obj /Tp getpw.c
    cl : Command line error D2003 : missing source filename
    NMAKE : fatal error U1077: 'cl' : return code '0x2'
    Stop.
    NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio .NET 2003\ VC7\BIN\nmake.exe"' : return code '0x2'
    Stop.

    C:\Program Files\SqlDump\sources>

    According to the cl documentation, /Tp getpw.c should work, but if I modify this line and put /Tp getpw.c right after cl, it works. (I manually compiled getopts, that's why getpw is being compiled.)

    I'll try to modify the make file for now, but any help would be appreciated.

    Thanks,

    Henry.

     
    • Henry Lafleur

      Henry Lafleur - 2005-10-05

      I was able to compile by making the following changes:

      $(CC) /Tp $< $(CFLAGS) $(CC_OUT)$@

      by putting /Tp $< first, it worked. But, it errored out on each compile because it could not resolve symbols. I just kept running nmake over and over again. It is almost as if each command line was too long for cl.exe to process and options were getting dropped.

      Also, the rc line was changes as follows (as if it was too long with the include paths):

      rc /r /fosqldumpw.res sqldumpw.rc

      After that, I ran nmake over and over again until the executable was built.

      If anyone can tell me what is wrong here, that would be appreciated. It sucks that VC7 can't handle a fairly long path and/or command line.

      Thanks,

      Henry.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.