Resources
| Sourcery G++ Data Sheet | |
| Register for a Sourcery G++ Evaluation | |
| Buy Sourcery G++ Today! |
Mailing Lists
| Announcements | |
| Discuss |
Do I need to install Cygwin to use Sourcery G++ on Windows? If I do have Cygwin installed, does Sourcery G++ understand Cygwin pathnames?
Question
Do I need to install Cygwin to use Sourcery G++ on Windows? If I do have Cygwin installed, does Sourcery G++ understand Cygwin pathnames?Answer
Sourcery G++ does not require Cygwin. You can use Cygwin, but you do not have to do so.
Because Sourcery G++ 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 G++ can also automatically translate Cygwin
paths for you if you set the CYGPATH
environment variable.
In this case,
when opening files,
Sourcery G++ 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 4 October 2009.