Re: how to force recompile?

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

r_z_aret_at_pen_fact.com
Date: 09/18/04

  • Next message: XBreezee: "How can I access the SMS Inbox?"
    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


  • Next message: XBreezee: "How can I access the SMS Inbox?"

    Relevant Pages

    • Re: Help required building app
      ... The app I am trying to build is Rosegarden 1.2.4. ... instead of make to compile it. ... The source file containing the SoundDriverFactory::createDriver ... The linker should be finding the object file, ...
      (comp.os.linux.development.apps)
    • Re: How do linkers work?
      ... the object file is probably the same as the ... does not hold since all source files are thrown together. ... you cannot get any of the traditional compile errors from the ... You're trying to claim that one is separate compilation, ...
      (comp.lang.c)
    • Re: public domain program to convert f77 code to lower case
      ... The scary thing about a home-grown converter is the verification: Did it change something it shouldn't have? ... Will the object file be different? ... Some things to try: Compile the source file. ...
      (comp.lang.fortran)
    • Re: Kbuild Makefile output
      ... Now I have created single makefile to compile all this ... But now the problem is lots of file included in kernel ... Previously in 2.4 we use to put all output object file ...
      (Linux-Kernel)
    • Re: Make Depend
      ... and generates rules that indicate that an object file ... In order for main.c to compile and link properly ... to create a complete, executable program, it's absolutely essential that ... What Makefile dependencies are about is ensuring that, ...
      (freebsd-questions)