Re: how to force recompile?
r_z_aret_at_pen_fact.com
Date: 09/18/04
- Previous message: Tom Gensel \(eMVP\): "Re: Setting Date and Time Picker date limits???"
- In reply to: stuart: "how to force recompile?"
- Messages sorted by: [ date ] [ thread ]
Date: Sat, 18 Sep 2004 13:22:57 -0400
On Thu, 16 Sep 2004 23:06:23 GMT, "stuart" <stuart@nospam.com> wrote:
>Hello,
> I have a file that I want to be sure compiles every time I build the
>project. On the desktop I can achieve this by creating a Post Build step
>that deletes the object file of the cpp file I always want to compile.
>However that plan doesn't seem to work in eVC++. I get:
>
>LINK : fatal error LNK1181: cannot open input file '.\ARMV4Dbg\AboutDlg.obj'
>
>It's as though it doesn't try to compile AboutDlg.cpp if it doesn't see the
>object file there yet.
I just tried to partly duplicate this error. I built one of my
projects, manually deleted an object (.obj) file, and rebuilt again.
No problem; the source file _was_ recompiled. So I'm quite sure the
object file does _not_ need to exist.
>
>Anyone have any ideas why this might be happening, how to prevent it, or how
>I can accomplish my task some other way?
Are you, by chance, using XP with SP 1? I just found out that it has
problems with file access, that may be exacerbated by timing. Symptoms
include "random" problems when writing and deleting the same file
repeatedly. (I _think_ the problem has to do with the directory,
rather than the actual file.) So I was inclined to suggest adding a
delay, until I noticed that you did the delete in a _post_ build step,
which should leave plenty of time before the next build. I'll post
this anyway, just in case.
You could also use a "touch" program to change the date on the object
file to an hour earlier.
>
>thanks,
>Stuart
>
-----------------------------------------
To reply to me, remove the underscores (_) from my email address (and please indicate which newsgroup and message).
Robert E. Zaret, eMVP
PenFact, Inc.
500 Harrison Ave., Suite 3R
Boston, MA 02118
www.penfact.com
- Previous message: Tom Gensel \(eMVP\): "Re: Setting Date and Time Picker date limits???"
- In reply to: stuart: "how to force recompile?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|