1.9 About specifying Cygwin paths in compilation tools on Windows

You must use an environment variable to specify Cygwin paths for compilation tools on Windows.

By default on Windows, the compilation tools require path names to be in the Windows DOS format, for example, C:\myfiles. If you want to use Cygwin path names, then set the CYGPATH environment variable to the location of the cygpath.exe file on your system. For example:

set CYGPATH=C:/cygwin/bin/cygpath.exe

You can now specify file locations in the compilation tools command-line options using the Cygwin path format. The paths are translated by cygpath.exe. For example, to compile the file /cygdrive/h/main.c, enter the command:

armcc -c --debug /cygdrive/h/main.c

You can still specify paths that start with:

  • A drive letter, for example C:\ or C:/.

  • UNC, for example, \\computer.

The compilation tools do not translate these paths because the paths are already in a form that Windows understands.

Limitations of CYGPATH

Be aware of the following limitations with CYGPATH:

  • Cygwin path translation enabled by CYGPATH is only supported on 32-bit Windows platforms, and is not supported on Windows Server 2012 and 64-bit Windows 8.1.

  • When using a Cygwin style path with spaces or other special terminal characters, the path must be double quoted:

    • The use of single quotes or escaping characters is not supported.

    • The use of literal doublequote characters in path names is not supported.

Non-ConfidentialPDF file icon PDF versionARM DUI0529M
Copyright © 2010-2016 ARM Limited or its affiliates. All rights reserved.