如何使符号链接与cygwin在Windows 7 [英] How to make symbolic link with cygwin in Windows 7

查看:193
本文介绍了如何使符号链接与cygwin在Windows 7的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近我已经测试用本机代码C / C ++编写Android应用程序。问题是在使用Android NDK时进行符号链接。经过一些谷歌,有人说使用cygwin。我现在安装了。请告诉我如何在Windows 7中与cygwin建立符号链接。



提前感谢。

方案

有关类似问题,请参阅此答案



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

  CYGWIN = winsymlinks:nativestrict 



  CYGWIN = winsymlinks: native 

并确保以提升权限运行Cygwin(右键单击快捷方式并选择以管理员身份运行,或设置 mintty 快捷方式属性,高级→以管理员身份运行)。



所有详细信息均在另一个答案


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.

解决方案

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.

这篇关于如何使符号链接与cygwin在Windows 7的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆