#320 VC++ don't compile after sourcecode changes

Tasks (408)

I'm using Build 0.85.1881.0; nightly; 24.02.2005

When i change the sourcecode of my VC++ project and
build it with the solution task, the project doesn't
compile. The cpp file is newer than the obj file, but it
doesn't compile.
I've figured out a problem in
NAnt.VisualCpp.Tasks.ClTask.NeedsCompiling(): This
method calls AreObjsUpToDate witch calls
IsObjUpToDate(string) witch calls
(StringCollection, DateTime) but this method only check
the last write times if the filename have full path. I think
in this case the filename have no full path and the
method do nothing. Can you change this behaviour?

The second problem: When I change only an includefile
the NAnt.VisualCpp.Tasks.ClTask.NeedsCompiling()
method could not see that the project must be compiled
because the
NAnt.VisualCpp.Tasks.ClTask.AreSourcesUpToDate() is
not implemented (only two TODO comments). Can you
implement this method?

I've added a little example to redroduce this behaviour.
Build it, Change the file AssemblyInfo.cpp, Build it again
and the project doesn't recompile.

Matthias Jentsch


  • Gert Driesen

    Gert Driesen - 2005-03-05
    • labels: --> Tasks
    • assigned_to: nobody --> drieseng
    • status: open --> closed-fixed
  • Gert Driesen

    Gert Driesen - 2005-03-05

    Logged In: YES

    This is now fixed in cvs. If you notice any issues with the
    next nightly build, then reopen this bug report.


Log in to post a comment.

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

Sign up for the SourceForge newsletter:

No, thanks