本文介绍了cygwin中gcc的正确软件包名称是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在cygwin上安装gcc,但是当我在cygwin设置应用程序中搜索gcc时,会得到几个名称中带有字符串"gcc"的结果,例如:

I need gcc installed on cygwin,but when I search for gcc in the cygwin setup application, I get several results with the string "gcc" in their names, for example:

cygwin32-gcc-ada
cygwin32-gcc-core
cygwin32-gcc-fortran
cygwin32-gcc-g++
cygwin32-gcc-objc++
...
gcc-ada
gcc-core
gcc-fortran
gcc-g++
...
libgcc1
minigw-gcc-core
minigw-gcc-g++
....
minigw64-i686-gcc-core
minigw64-i686-gcc-g++
...

当我在ubuntu的突触中搜索gcc时,我得到一个非常明显的结果我想这些名字怎么办?全部安装?安装一个随机的文件,然后创建符号链接到二进制文件可能登陆到/usr/bin/gcc的任何地方?

when I am searching for gcc in synaptic in ubuntu, I have a very obvious resultwhat am I suppose to do with these names? install all?install a random one and then create symlinks to where ever it's binary may land to /usr/bin/gcc ?

当我尝试搜索我一直在线阅读的那个gcc来构建不需要cygwin安装程序的软件包时,从显示的许多软件包名称中可以得到什么用处和生产率?

what usefulness and productivity can be achieved from these many packages names showing up when I attempt searching for that one gcc that I keep reading online that I need to build packages that aren't on cygwin installer?

我到处都读到在cygwin上安装gcc,然后继续执行此操作,那件事",他们从来没有提到上面哪个gcc软件包是单个正确的软件包,

everywhere I read about "install gcc on cygwin and then continue to do this and that" they never mention which of the gcc packages above is single correct one,

就像世界各地的每个人一样,他们已经知道哪个gcc是正确的,并且该信息在网上找不到.

its like everyone everywhere somehow already knows which gcc is the correct one and that information is no where to be found online.

希望您能获得澄清和进一步的帮助.

I would appreciate clarification and further help.

在过去的某个时候,实际上曾经有一个名为"gcc"的软件包,我从以下屏幕截图中发现了这一点: http://www.eecg.utoronto.ca/~aamodt/ece242/cygwin.html

sometime in the past, there actually used to be a package called just "gcc",I found that from the screenshots here:http://www.eecg.utoronto.ca/~aamodt/ece242/cygwin.html

我不知道那是多少年前.

I can't tell how many years ago that was.

推荐答案

使Cygwin GCC软件包令人困惑的是:

The things that make Cygwin GCC packages confusing are:

  • gcc-core cygwinXX-gcc-core 令人困惑地相关( XX 是32或64,具体取决于您的Cygwin体系结构.)
  • MinGW MinGW-w64 都有软件包,它们是不同的项目,尽管很多人不知道它们的共存(我曾经).
  • gcc-core and cygwinXX-gcc-core are confusingly related (XX is 32 or 64 depending on your Cygwin architecture).
  • There are packages for both MinGW and MinGW-w64, which are different projects, although many people are unaware of their coexistence (I was).

截至2015年10月,Cygwin GCC软件包已按以下方式分解.

As of Oct 2015, Cygwin GCC packages are broken down like this.

Cygwin x86 (32位)中:


PROJECT: Cygwin GCC (Windows POSIX-enabled executables via linking to cygwin1.dll)

    PACKAGE                    TARGET ARCH    MAIN BINARY + LINKS (except versioned link)
    gcc-core                   x86            /usr/bin/gcc.exe
                                              /usr/bin/cc (symlink)
                                              /usr/bin/i686-pc-cygwin-gcc.exe (hard link)
    cygwin64-gcc-core          x86_64         /usr/bin/x86_64-pc-cygwin-gcc.exe

PROJECT: MinGW (Windows 32-bit standalone executables)

    PACKAGE                    TARGET ARCH    MAIN BINARY + LINKS (except versioned link)
    mingw-gcc-core             x86            /usr/bin/i686-pc-mingw32-gcc.exe

PROJECT MinGW-w64 (fork from MinGW for building 64-bit)

    PACKAGE                    TARGET ARCH    MAIN BINARY + LINKS (except versioned link)
    mingw64-i686-gcc-core      x86            /usr/bin/i686-w64-mingw32-gcc.exe
    mingw64-x86_64-gcc-core    x86_64         /usr/bin/x86_64-w64-mingw32-gcc.exe

Cygwin x86_64 (64位)中:


PROJECT: Cygwin GCC (Windows POSIX-enabled executables via linking to cygwin1.dll)

    PACKAGE                    TARGET ARCH    MAIN BINARY + LINKS (except versioned link)
    gcc-core                   x86_64         /usr/bin/gcc.exe
                                              /usr/bin/cc (symlink)
                                              /usr/bin/x86_64-pc-cygwin-gcc.exe (hard link)
    cygwin32-gcc-core          x86            /usr/bin/i686-pc-cygwin-gcc.exe

PROJECT: MinGW (Windows 32-bit standalone executables)

    PACKAGE                    TARGET ARCH    MAIN BINARY + LINKS (except versioned link)
    mingw-gcc-core             x86            /usr/bin/i686-pc-mingw32-gcc.exe

PROJECT MinGW-w64 (fork from MinGW for building 64-bit)

    PACKAGE                    TARGET ARCH    MAIN BINARY + LINKS (except versioned link)
    mingw64-i686-gcc-core      x86            /usr/bin/i686-w64-mingw32-gcc.exe
    mingw64-x86_64-gcc-core    x86_64         /usr/bin/x86_64-w64-mingw32-gcc.exe

这篇关于cygwin中gcc的正确软件包名称是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-27 01:12