Re: Dependency .CPP --> .OBJ broken
- From: Phil Cairns <oti169@xxxxxxxxxxxxxxxx>
- Date: Wed, 21 Jun 2006 06:08:48 +1000
chanceu wrote:
I'm using VS 6.0. I have narrowed my problem down to .C files and the compiler (cl.exe). At a command prompt, I created a .C file and a .CPP file, compiled both, and objects were created for both. I then changed 1 byte (0 to a 1 in a string) in the .C and .CPP files and recompiled without deleting the objects. The .CPP file compiled and the object reflected the new time. The .C did not appear to compile as the object time did not change.
HOWEVER, after a closer look, I noticed the file last accessed time did change and comparing the object fromt the first compile to the object from the second file (fc /b), I could see the byte I changed so the object was built. I am not sure what is happening. After the second compile, the .CPP object has the original creation time and new modified and last accessed times, the .C object only has a new last accessed time. Even though the object is built for the .C file, the link does not include it because the incremental link does not see a need to since the modified time did not change.
I have no f****** idea what is going on and Microsoft refuses to help since I am apparently the only person in the world that still uses VS 6.0.
If you want a workaround (rather than a solution), can you add a post-build step for the problematic .C file that touches the .obj file to update the modification time? If you don't have a touch program, you can get one from http://unxutils.sourceforge.net ...
.
- References:
- Dependency .CPP --> .OBJ broken
- From: unoriginal_username
- Re: Dependency .CPP --> .OBJ broken
- From: Doug Forster
- Dependency .CPP --> .OBJ broken
- Prev by Date: Re: Code Snippets
- Next by Date: Trident Designer Package has failed to load properly
- Previous by thread: Re: Dependency .CPP --> .OBJ broken
- Next by thread: Re: Dependency .CPP --> .OBJ broken
- Index(es):
Relevant Pages
|