On Thu, 23 Sep 2004 17:04:08 -0600 Vadim Zeitlin <[EMAIL PROTECTED]> wrote:

> On Thu, 23 Sep 2004 15:53:51 -0600 (Mountain Daylight Time) Ed Vazquez <[EMAIL 
> PROTECTED]> wrote:
> 
> EV> With VS .NET 2003, there seems to be an issue in the M portion
> EV> of the build that deletes the MInterface.h and MInterface.cpp
> EV> files, leaving zero byte files in their place.
> 
>  Although I didn't see it myself, I did have some reports about problems
> with m4.bat from other people but never really investigated it because it
> was simple to fix by just copying the files around...

I tried just copying stuff around, but something in the script
overwrites anyhow.

> 
> EV> I tested this by running the m4.bat script on the command line,
> EV> which created the files, and then monitoring the size of the
> EV> file manually with DIR.  As soon as the M build starts, the two
> EV> files get zeroed out.  Which causes the entire build to fail.
> 
>  Two questions: do you have m4 on your system? What is your COMSPEC
> environment variable value?

m4.exe exists in the VS path and the MingW path.  It is the
current build from the GnuWin32 project.

G:\vs-build>.\bin\m4.exe --version
GNU m4 1.4.2

G:\vs-build>%COMSPEC%
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

> 
> EV> My manual workaround was to run the command line, copy the .cpp
> EV> file to the modules sub-directory and then as soon as the M
> EV> section started, re-run the command line to generate the .h
> EV> file.
> 
>  If you copy MInterface.{h|cpp}.m4 to MInterface.{h.cpp} and touch the
> latter files, they shouldn't be erased any longer as VS shouldn't rebuild
> them if they're more recent than their sources, so this must fix the
> problem.

I did try copying them, and as you can see from my first post,
the timestamp on the file is apparently irrelevant.  It will get
overwritten by either the script or the .DSP project.

With the exception of the .cpp in the src/modules folder, which
is left alone.

> 
>  I still don't understand why did it arise in the first place however...

Something changed in the way the batch files are parsed I
suspect.  MS has done this before between NT4 and 2K.

> 
>  Regards,
> VZ

-- 
Ed Vazquez

Hard work spotlights the character of people; some turn up 
their sleeves, some turn up their noses, and some don't turn up 
at all!  


-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
Mahogany-Users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-users

Reply via email to