Thread: Using NMAKE?

  1. #1
    and the hat of sweating
    Join Date
    Aug 2007
    Location
    Toronto, ON
    Posts
    3,545

    Using NMAKE?

    Hi,
    I'm trying to build a project .mak file using NMAKE, but it can't find some standard headers:
    Code:
    ..\..\source\DES\Des.c(7) : fatal error C1083: Cannot open include file: 'memory.h': No such file or directory
    NMAKE : fatal error U1077: 'cl.exe' : return code '0x2'
    Stop.
    How do I tell NMAKE where my Include & Lib directories are?
    Putting it in my PATH doesn't help.

  2. #2
    Registered User
    Join Date
    Oct 2001
    Posts
    2,129
    memory.h is not a standard header.

  3. #3
    and the hat of sweating
    Join Date
    Aug 2007
    Location
    Toronto, ON
    Posts
    3,545
    Quote Originally Posted by robwhit View Post
    memory.h is not a standard header.
    I mean "standard" as in one that comes with VC++, not "the C++ standard" which only has a handful of headers.
    memory.h IS in the include directory for VC++.

  4. #4
    Registered User
    Join Date
    Oct 2001
    Posts
    2,129
    Did you do "memory.h" or <memory.h>?

  5. #5
    Hurry Slowly vart's Avatar
    Join Date
    Oct 2006
    Location
    Rishon LeZion, Israel
    Posts
    6,788
    Quote Originally Posted by robwhit View Post
    Did you do "memory.h" or <memory.h>?
    It makes not a big difference - "" first looks for the file in the current folder than in the same places as <>

    I suppose to add these place into compiler search path you need to use -I command line key

    You can look at the command line build by the GUI in the project settings
    All problems in computer science can be solved by another level of indirection,
    except for the problem of too many layers of indirection.
    – David J. Wheeler

  6. #6
    and the hat of sweating
    Join Date
    Aug 2007
    Location
    Toronto, ON
    Posts
    3,545
    After I set an environment variable "INCLUDE" to the VC++ include directory it got past those errors. I got some different problems now, but I'll fix those on Monday.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. nmake won't work in vs2008
    By inhahe in forum Windows Programming
    Replies: 2
    Last Post: 05-16-2008, 03:58 AM