Re: Don't know how to make

From: Bonj (Bonj_at_discussions.microsoft.com)
Date: 12/10/04


Date: Fri, 10 Dec 2004 06:41:06 -0800

It seems like wherever I put the "cd $(MAKEDIR)" to switch back from the
dependent project's directory to $(MAKEDIR) (which I've checked is correct by
echoing it) it "lumps it together" with the next call to $(CPP) (which is
cl.exe) and thus executes cl.exe in the wrong directory. AARRRGH!!!!

The offending part of the output is:

        cd C:\Documents and Settings\taylorb\My Documents\Visual Studio
Projects\findwords
        echo In %cd%...
In C:\Documents and Settings\taylorb\My Documents\Visual Studio
Projects\stringclass...
        cd C:\Documents and Settings\taylorb\My Documents\Visual Studio
Projects\findwords
        cl /D"_UNICODE" /D"UNICODE" /Zi /D"_DEBUG" /Yc"stdafx.h"
/D"FINDWORDSLIB" findwords.cpp findwords.def vbscript_i.obj t_mys
tring.obj b_mystring.obj ole32.lib oleaut32.lib msvcrtd.lib /link
/nodefaultlib:libc.lib
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 13.10.3077 for 80x86
Copyright (C) Microsoft Corporation 1984-2002. All rights reserved.

findwords.cpp
c1xx : fatal error C1083: Cannot open source file: 'findwords.cpp': No such
file or directory
NMAKE : fatal error U1077: 'cl' : return code '0x2'
Stop.

Basically, stringclass and findwords are two directories that are siblings
of the same parent directory. findwords.cpp is in the "findwords" directory
but it *isn't* in the stringclass directory. It is *obvious* that it is still
in the stringclass directory when trying to execute cl.exe, even though it
claims to have executed a "cd" command.

Please, somebody who's done makefiles with projects in other directories
tell me how to do this. There must be a simple solution out there...

"Andy Sinclair" wrote:

> Bonj wrote:
> >But if I do "nmake clean" and then "nmake findwords.dll" it runs through
> >$(stringclassfiles) and successfully makes and deploys it, but then claims
> >"fatal error U1073 - don't know how to make 'vbscript.idl' ".
> >But I haven't told it to make this, I've told it that vbscript.idl is a
> >*dependency* of the build process for vbscript_i.obj. This is the bit I'm not
> >getting.
> When you specifying a dependency, make will look for a rule to make
> it. If it is not found, it will look for a file.
>
> The error means that make cannot find the file specified.
> If it is a file you edit, you may need to specify its location
> explicitly.
>
> Andy
>



Relevant Pages

  • Re: Dont know how to make
    ... dependent project's directory to $(which I've checked is correct by ... cl.exe) and thus executes cl.exe in the wrong directory. ... but it *isn't* in the stringclass directory. ... > When you specifying a dependency, make will look for a rule to make ...
    (microsoft.public.vc.language)
  • Re: HPA patches
    ... dependent. ... Pondering about this, it's ATA_LBA according to the docs, specifying ... that the address is an LBA. ...
    (Linux-Kernel)

Loading