如何在Windows 7中与cygwin进行符号链接?

时间:2021-10-15 07:47:58

Recently I have tested to write Android application with native code C/C++. The problem is in making symbolic link when using Android NDK. After some Googling, some say to use cygwin. I have installed it now. Please tell me how to make symbolic link with cygwin in Windows 7.

最近我测试了用本地代码C/ c++编写Android应用程序。在使用Android NDK时,问题在于如何做出符号链接。在谷歌搜索之后,有人说使用cygwin。我已经安装好了。请告诉我如何在Windows 7中与cygwin进行符号链接。

Thanks in advance.

提前谢谢。

2 个解决方案

#1


46  

Please see this answer on similar question.

请在类似的问题上看到这个答案。

In short, define following environment variable:

简而言之,定义以下环境变量:

CYGWIN=winsymlinks:nativestrict

or

CYGWIN=winsymlinks:native

and be sure you run Cygwin with elevated privileges (right-click the shortcut and choose Run as Administrator, or set the mintty shortcut property, Advanced → Run as Administrator).

确保您运行的Cygwin具有更高的特权(右键单击快捷方式,选择run作为管理员,或者设置mintty快捷方式属性,Advanced run作为管理员)。

All details are provided in the other answer.

所有的细节都提供了另一个答案。

#2


8  

I got it next day! So, not to wrongly get ignorance thinking like me (newbie to cygwin), I answer it now. Making symbolic link is easy for window 7 with these command ln -s ... as usual. The answer is setting up cygwin with required package like make,etc. Read requirement clearly. http://developer.android.com/sdk/ndk/index.html

我第二天就拿到了!所以,不要像我一样错误地思考(新手到cygwin),我现在就回答。对于使用这些命令ln -s的窗口7来说,创建符号链接很容易。像往常一样。答案是设置cygwin和需要的包,比如make等。阅读要求清楚。http://developer.android.com/sdk/ndk/index.html

#1


46  

Please see this answer on similar question.

请在类似的问题上看到这个答案。

In short, define following environment variable:

简而言之,定义以下环境变量:

CYGWIN=winsymlinks:nativestrict

or

CYGWIN=winsymlinks:native

and be sure you run Cygwin with elevated privileges (right-click the shortcut and choose Run as Administrator, or set the mintty shortcut property, Advanced → Run as Administrator).

确保您运行的Cygwin具有更高的特权(右键单击快捷方式,选择run作为管理员,或者设置mintty快捷方式属性,Advanced run作为管理员)。

All details are provided in the other answer.

所有的细节都提供了另一个答案。

#2


8  

I got it next day! So, not to wrongly get ignorance thinking like me (newbie to cygwin), I answer it now. Making symbolic link is easy for window 7 with these command ln -s ... as usual. The answer is setting up cygwin with required package like make,etc. Read requirement clearly. http://developer.android.com/sdk/ndk/index.html

我第二天就拿到了!所以,不要像我一样错误地思考(新手到cygwin),我现在就回答。对于使用这些命令ln -s的窗口7来说,创建符号链接很容易。像往常一样。答案是设置cygwin和需要的包,比如make等。阅读要求清楚。http://developer.android.com/sdk/ndk/index.html