Thread: makefile exported by vc 6.0 doesn't work

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Oct 2005
    Posts
    42

    makefile exported by vc 6.0 doesn't work

    Hi there,

    When a make file is exported with VC 6.0 "Export Makefile..." function, and executed from command line, it doesn't work. The error is
    Code:
    D:\iis>NMAKE /f "iis.mak"
    
    Microsoft (R) Program Maintenance Utility   Version 6.00.8168.0
    Copyright (C) Microsoft Corp 1988-1998. All rights reserved.
    
    No configuration specified. Defaulting to iis - Win32 Debug.
    NMAKE : fatal error U1073: don't know how to make '"c:\program files\microsoft v
    isual studio\vc98\include\basetsd.h"'
    Stop.
    The VC 6.0 is installed at "e:\...", but "c:\...". How to correct the makefile exported by VC 6.0 to make it work?

    Thanks,

  2. #2
    erstwhile
    Join Date
    Jan 2002
    Posts
    2,227
    Did you run vcvars.bat/vsvars.bat (might call itself something like 'visual c++ command prompt' in its shortcut) before invoking nmake?
    CProgramming FAQ
    Caution: this person may be a carrier of the misinformation virus.

  3. #3
    Registered User
    Join Date
    Oct 2005
    Posts
    42
    No, I can not find them, no matter it is vcvars.bat or vsvars.bat. Where are they?

    Thanks,

  4. #4
    erstwhile
    Join Date
    Jan 2002
    Posts
    2,227
    If you've properly installed vc6 then it should be one of the shortcuts in the program group under visual c++ with a name something like 'visual c++ command prompt', as I've previously described. This runs vcvars.bat ('vsvars.bat' with visual studio, I think) which sets various environment variables such as include, lib and compiler etc. paths. Do a search in your vc6 installation directory for 'vcvars.bat' and open it with a text editor if you want more specific information about it.
    CProgramming FAQ
    Caution: this person may be a carrier of the misinformation virus.

  5. #5
    Registered User
    Join Date
    Oct 2005
    Posts
    42
    It's VCVARS32.BAT. But even it is executed, and

    set MSVCDir=E:\Program Files\Microsoft Visual Studio\VC98

    the problem is still there.

    Thanks,

  6. #6
    erstwhile
    Join Date
    Jan 2002
    Posts
    2,227
    >>VCVARS32.BAT<<

    Close enough.

    >>the problem is still there.<<

    Post the makefile - if it's huge it might be a better idea to zip it up and attach it rather than post it. Post any errors, too.
    CProgramming FAQ
    Caution: this person may be a carrier of the misinformation virus.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Makefile Problem: None rule to make target
    By chris24300 in forum Linux Programming
    Replies: 25
    Last Post: 06-17-2009, 09:45 AM
  2. unix makefile won't work but works in Dev C++
    By jk1998 in forum C++ Programming
    Replies: 1
    Last Post: 06-09-2007, 03:54 PM
  3. The Bludstayne Open Works License
    By frenchfry164 in forum A Brief History of Cprogramming.com
    Replies: 8
    Last Post: 11-26-2003, 11:05 AM
  4. fopen();
    By GanglyLamb in forum C Programming
    Replies: 8
    Last Post: 11-03-2002, 12:39 PM
  5. VC 6.0 compiled error
    By alan4100 in forum Windows Programming
    Replies: 4
    Last Post: 09-17-2001, 03:10 PM