问题
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