C:\WINDOWS\system32>mklink
The syntax of the command is incorrect.
Creates a symbolic link.
MKLINK [[/D] | [/H] | [/J]] Link Target
/D Creates a directory symbolic link. Default is a file
symbolic link.
/H Creates a hard link instead of a symbolic link.
/J Creates a Directory Junction.
Link Specifies the new symbolic link name.
Target Specifies the path (relative or absolute) that the new link
refers to.
###Administrator privelege is needed
C:\WINDOWS\system32>mklink C:\MinGW\msys\1.0\bin\gcc.exe C:\MinGW\bin\gcc.exe
symbolic link created for C:\MinGW\msys\1.0\bin\gcc.exe <<===>> C:\MinGW\bin\gcc.exe
C:\WINDOWS\system32>
C:\Users\jhula>dir C:\MinGW\msys\1.0\bin\gcc.exe
Volume in drive C is OSDisk
Volume Serial Number is BA87-7956
Directory of C:\MinGW\msys\1.0\bin
2019/07/19 10:38 <SYMLINK> gcc.exe [C:\MinGW\bin\gcc.exe]
1 File(s) 0 bytes
0 Dir(s) 28,044,410,880 bytes free
C:\Users\jhula>
###MinGW
lake@localhost /usr/bin
$ which gcc
/usr/bin/./gcc.exe
lake@localhost /usr/bin
$ gcc -version
gcc.exe: error: unrecognized command line option '-version'
gcc.exe: fatal error: no input files
compilation terminated.