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

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Low Low

      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.

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

              Created:
              Updated: