No gcc4 in Cygwin package list

I had to use NS-2 on Windows. So I installed Cygwin and downloaded the NS-2 source and started ./install, then it said

Cygwin detected
Note: Cygwin install is still considered EXPERIMENTAL

Checking Cygwin version is >= 1.7.1... 1.7.27 (should be ok)
Checking filesystems are mounted as UNIX filetype... yes
Checking default mode is binmode... yes
Checking legitimate login name... ok
Checking legitimate path name... ok
Checking for gcc4... NO!

Cygwin has packages that seem to be related to gcc4

cygwin64-gcc
gcc
mingw-gcc
mingw64-*-gcc

And they all have versions> = 4.x

And there are no packages named *gcc4*

+3
source share
3 answers

Packages gcc4-*are outdated; gcc-*now provides version 4.x of the compiler. You will need to fix this script to check for example. gcc -dumpversioninstead of a specific package name.

+3
source

I ran the commands below in CygWin and was able to fix the problem.

cd /bin
ln -s gcc.exe gcc-4
ln -s gcc.exe gcc-3
ln -s gcc.exe 'g++-4'
+2
source

gcc , simlinking gcc-4 gcc g++ g++ - 4 , .

-1
source

All Articles