Do I need to install Cygwin to use Sourcery CodeBench on Windows? If I do have Cygwin installed, does Sourcery CodeBench understand Cygwin pathnames?
Question
Do I need to install Cygwin to use Sourcery CodeBench on Windows? If I do have Cygwin installed, does Sourcery CodeBench understand Cygwin pathnames?Answer
Sourcery CodeBench does not require Cygwin. You can use Cygwin, but you do not have to do so.
Because Sourcery CodeBench does not depend on Cygwin, it prints pathnames using the usual Windows conventions (e.g., using drive letters and backslashes), and does not understand Cygwin's synthetic mount points.
You can use the cygpath
command to
translate Cygwin pathnames to Windows pathnames.
For example, if you are using the Cygwin shell, you might
invoke the compiler like:
${prefix}-gcc -c $(cygpath -w /path/to/file.c)
to compile file.c
.
Sourcery CodeBench can also automatically translate Cygwin
paths for you if you set the CYGPATH
environment variable.
In this case,
when opening files,
Sourcery CodeBench tries each pathname first as an ordinary
Windows pathname, and, then,
if the file cannot be opened, it tries again by
interpreting the pathname as a Cygwin pathname.
You can set CYGPATH
either to the string
cygpath
to use the cygpath
found in your PATH
, or to the absolute
pathname of the translation program to use.
This entry was last updated on 10 October 2011.