Linker always relinks old object files.

  • Kolisto

    Kolisto - 2005-06-02

    Second build of unchenged files leads to linking although "cc" task prints what nothing changed.

    [cc] Starting dependency analysis for 20 files.
    [cc] 20 files are up to date.
    [cc] 0 files to be recompiled from dependency analysis.
    [cc] 0 total files to be compiled.
    [cc] Starting link

    How to make linker executes only when some sources files was recompiled? (it is needed for incremental building)

    Thx in advance.

    • Curt Arnold

      Curt Arnold - 2005-06-02

      The task will intentionally relink even when there are no new compilations if the executable is missing or the timestamp is not consistent.  However, I assume that in your case neither of those is true.  Can you provide any more details on your setup, OS, JVM, compiler/linker, Ant and cpptasks versions, etc?  I think it is likely that the problem is something specific to your confguration.

    • Kolisto

      Kolisto - 2005-06-06

      Thx for replay. But I found a problem. It was my fault. I recopy target files.


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks