This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCSv4 and Clearcase

Hi,

I'm using Source Control (Clearcase) in CCSv4. When I start the 'clean' operation:
Object files in another than the default directory are not deleted. Thus
a following build instruction does not work as expected.

Is there a workaround?
Will this be fixed in coming releases?

Thanks and regards,




  • So you have a project structure something like this:

     

    Project

    \Source

    Main.c

    Foo.c

     

    When you build you will have something that looks like:

     

    Project

    \Debug

    Foo.obj

    Project.out

    \Source

    Main.obj

    \Source

    Main.c

    Foo.c

     

    When you clean It should look like this again:

    Project

    \Source

    Main.c

    Foo.c

     

    Basically the whole \Debug directory gets deleted.  For you is foo.obj getting deleted but not main.obj?

     

    John

  • Hi John,

     

    yes that's correct.

     

    Kind regards,

    one and zero

  • Are you able to delete the \Debug directory from Windows explorer?

     

    John

  • Hi John,

    The .obj file that can not be deleted is not in a sub-folder of debug.

    It is directed into an unrelated location as defined in the build properties Directory specifiier - object file directory ...

    Thanks,

    one and zero

  • I opened the build options for main.c and changed it to put the obj in a c:\test folder.  When building it puts the obj in this directory and removes it when I run clean.

     

    Please confirm that the file can be deleted from windows explorer.

     

    John

  • The .obj file can be deleted with Explorer. That's the "manual" clean process we go through. One other piece of information. The database under source control is on a network drive. The generated files from the build process are on the local disc. So basically the C file and the obj File are even on different drives ...

    one and zero

  • Hi 1&0,

    Could you provide a bit more details? Basically:

    -Are you using the ClearCase plugin for Eclipse?

    -What exactly is checked into source control and what is not? Is your workspace + project folder in source control on network drive? Or is only the source files in source control and your workspace and project folder on the local drive (source files in source control and linked to the project folder? or a combination (workspace in local drive, project folder in source control with source files, etc)?

    Thanks

    ki

     

  • Hi Ki,

     

    we're using the ClearCase plugin for Eclipse.

    We also found a soution to the problem. It seems that when you link in the source files individually instead of the whole directory the .obj Files get deleted.

     

    Thanks,

    1&0