Uploaded image for project: 'Embedded Software & Tools'
  1. Embedded Software & Tools
  2. EXT_EP-9771

The option --preproc_dependency mishandles spaces in directory names

    XMLWordPrintable

Details

    • Bug
    • Status: Accepted
    • Low
    • Resolution: Unresolved

    Description

      The following commands are performed on Windows.

      C:\work>type "dir with space"\file.c
      int a;
      
      C:\work>cl2000 --preproc_dependency "dir with space"\file.c
      
      C:\work>type "dir with space\file.pp"
      file.obj: dir\\ with\\ space\file.c
      
      C:\work>gmake -f "dir with space\file.pp"
      gmake: *** No rule to make target 'dir\', needed by 'file.obj'.  Stop.
      
      C:\work>type "dir with space\corrected"
      file.obj: dir\ with\ space/file.c
      
      C:\work>gmake -f "dir with space\corrected"
      gmake: Nothing to be done for 'file.obj'.
      

      file.c is a toy C file. The file corrected was created by making a copy of file.pp, then changing it manually, in order to show one way the spaces in the directory name could be handled.

      Attachments

        Activity

          People

            syncuser TI User
            syncuser TI User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: