How to make symbolic link with cygwin in Windows 7

情到浓时终转凉″ 提交于 2019-12-17 07:15:19

问题


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.

Thanks in advance.


回答1:


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).

All details are provided in the other answer.




回答2:


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




回答3:


You may try to use "mklink" insteed of "ln -s" as @Tony O'Hagan suggested here: Git Bash Shell fails to create symbolic links



来源:https://stackoverflow.com/questions/3648819/how-to-make-symbolic-link-with-cygwin-in-windows-7

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!