mklink/Windows cmd for MinGW

66 篇文章 0 订阅
11 篇文章 0 订阅

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.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值