Re: always recompile file

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



I have to agree with Robert on this. If the exe is going to wander, I like
to tag it in version control, get the tagged version to a clean folder and
build the whole thing. Otherwise, what does the date and time really tell
you?

--
Bruce Eitman (eMVP)
Senior Engineer
Bruce.Eitman AT EuroTech DOT com

EuroTech Inc.
www.EuroTech.com

<r_z_aret@xxxxxxxxxxxx> wrote in message
news:t8qm14t7583au89guvkv9ja3vkehemufmg@xxxxxxxxxx
On Thu, 1 May 2008 10:32:03 -0700 (PDT), Davep15@xxxxxxxxx wrote:

We're building a project in Microsoft eMbedded Visual C++ 4.0. In one
place I use the __DATE__ and __TIME__ macros to include in code the
actual compile data and time of this version. I hope to be able to
tell exactly when an exe was made as different versions float around.
Problem is that the date and time in the executable only change if
that .cpp file was changed (as we usually use the Build Option instead
of the Rebuild All). I'm looking for a way to force the compiler to
always recompile this 1 file, even if it hasn't changed.

You can delete the .obj file, or even just change its modification
date (using a "touch" utility). I'm not sure how to automate either of
these; perhaps something in the Custom Build tab.

I try very hard to do a complete build for any executable that might
wander. That way I'm sure all changes have been incorporated and flags
such as __DATE__ are used.

-----------------------------------------
To reply to me, remove the underscores (_) from my email address (and
please indicate which newsgroup and message).

Robert E. Zaret, eMVP
PenFact, Inc.
20 Park Plaza, Suite 478
Boston, MA 02116
www.penfact.com


.



Relevant Pages

  • Re: Bericht
    ... USE MEINREPORT.FRX ... Wenn Du den Bericht mit Use öffnen kannst, ... "Robert Lugger" schrieb im Newsbeitrag ... Programmverzeichnis habe ich nur meine EXE liegen, ...
    (microsoft.public.de.fox)
  • Re: Arny trashes his computers!
    ... I didn't have to wander. ... BTW Robert, this conversation reminds me of talking ... to one of the meaner girls in my old high school. ... a few well-known troubled personalities that post on Usenet seem to ...
    (rec.audio.opinion)
  • Re: Arny trashes his computers!
    ... I didn't have to wander. ... BTW Robert, this conversation reminds me of talking ... to one of the meaner girls in my old high school. ...
    (rec.audio.opinion)
  • Re: Arny trashes his computers!
    ... I didn't have to wander. ... BTW Robert, this conversation reminds me of talking to ...
    (rec.audio.opinion)
  • Re: Arny trashes his computers!
    ... I didn't have to wander. ... BTW Robert, this conversation reminds me of talking to ...
    (rec.audio.opinion)