VS2008命令提示符+ Cygwin [英] VS2008 Command Prompt + Cygwin

查看:129
本文介绍了VS2008命令提示符+ Cygwin的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用VS2008命令提示符编译,TFS访问等,cygwin提示符为grep,vi和类似unix的工具。有没有什么方法我可以'导入'vcvars32.bat功能到cygwin环境,所以我可以从cygwin本身调用tfs checkout?

I use the VS2008 command prompt for builds, TFS access etc. and the cygwin prompt for grep, vi and unix-like tools. Is there any way I can 'import' the vcvars32.bat functionality into the cygwin environment so I can call "tfs checkout" from cygwin itself?

推荐答案

根据此网页您需要:

根据您的偏好,您可以将编译所需的变量直接添加到您的环境中,或使用vcvars32.bat脚本将其设置为注意,你必须从cygwin bash shell编译,使用vcvars32,首先运行一个DOS shell,然后运行vcvars32.bat,然后从安装cygwin的目录运行cygwin.bat,你可以通过添加目录containgin vcvars32(在\Microsoft Visual Studio \VC98 \bin下的某处)和包含cygwin.bat的目录到您的路径。

"Depending on your preference, you can either add the variables required for compilation direct to your environment, or use the vcvars32.bat script to set them for you. Note you have to compile from a cygwin bash shell, to use vcvars32, first run a DOS shell, then run vcvars32.bat, then run cygwin.bat from the directory where you installed cygwin. You can speed this up by adding the directory containgin vcvars32 (somewhere under \Microsoft Visual Studio\VC98\bin) and the directory containing cygwin.bat to your path."

这篇关于VS2008命令提示符+ Cygwin的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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