简体   繁体   English

如果我已经安装了MinGW和Cygwin(在Windows 7上),则在cmd.exe中调用gcc编译器时将使用哪一个?

[英]If I have installed MinGW and Cygwin (on Windows 7), which one will be used when the gcc compiler is invoked in cmd.exe?

If I have installed MinGW and Cygwin (on Windows 7), which one will be used when the gcc compiler is invoked on the Windows MS-DOS shell command line? 如果我已经安装了MinGW和Cygwin(在Windows 7上),则在Windows MS-DOS shell命令行上调用gcc编译器时将使用哪一个?

If it is ambiguous, how can I figure out which one of the two packages' GCC is used? 如果模棱两可,我该如何确定使用了两个软件包中的哪个GCC?

If memory serves neither one modifies your system PATH. 如果内存不起作用,则不会修改您的系统PATH。 So if you just open cmd.exe you are probably going to get a 因此,如果您只打开cmd.exe ,则可能会得到一个

gcc not found

If you want to use GCC you will need to open the Bash prompt for Cygwin or MinGW. 如果要使用GCC,则需要为Cygwin或MinGW打开Bash提示。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM