Re: Don't know how to make

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


Date: Fri, 10 Dec 2004 08:25:04 -0800

I solved it -

It was just a case of putting
cd "$(MAKEDIR)"
instead of
cd $(MAKEDIR)

I was eluding myself into thinking that because I was only doing "cd", then
it didn't matter that $(MAKEDIR) had spaces in it - as is normally the case
when executing "cd" from a normal DOS prompt - as it knows that it's only
ever going to receive one parameter. Presumably nmake doesn't know this
however.
I can only assume this is because nmake shells out to
"%comspec% /c <command>"
?

"Bonj" wrote:

> 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
    ... it didn't matter that $(MAKEDIR) had spaces in it - as is normally the case ... when executing "cd" from a normal DOS prompt - as it knows that it's only ... > in the stringclass directory when trying to execute cl.exe, ... >> When you specifying a dependency, make will look for a rule to make ...
    (microsoft.public.vc.language)
  • Re: onLoad Javascript
    ... I am actually specifying the ... name of the javascript function, I verfied this by executing the ... function in onClick and everything works fine. ...
    (microsoft.public.dotnet.framework.aspnet)

Loading