Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/heroku/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Command line VS2008命令提示符+;西格温_Command Line_Cygwin - Fatal编程技术网

Command line VS2008命令提示符+;西格温

Command line VS2008命令提示符+;西格温,command-line,cygwin,Command Line,Cygwin,对于构建、TFS访问等,我使用VS2008命令提示符,对于grep、vi和类unix工具,我使用cygwin提示符。是否有任何方法可以将vcvars32.bat功能“导入”到cygwin环境中,以便从cygwin本身调用“tfs checkout”?根据您的需要: “根据您的偏好,您可以将编译所需的变量直接添加到您的环境中,也可以使用vcvars32.bat脚本为您设置这些变量。注意:您必须从cygwin bash shell编译,要使用vcvars32,首先运行DOS shell,然后运行vc

对于构建、TFS访问等,我使用VS2008命令提示符,对于grep、vi和类unix工具,我使用cygwin提示符。是否有任何方法可以将vcvars32.bat功能“导入”到cygwin环境中,以便从cygwin本身调用“tfs checkout”?

根据您的需要:


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

这是我的示例cygwin.bat文件,它配置了Visual Studio并启动mintty

@echo off
@REM Select the latest VS Tools
IF  EXIST %VS100COMNTOOLS% (
    CALL "%VS100COMNTOOLS%\vsvars32.bat"
    GOTO :start_term
)

IF  EXIST %VS90COMNTOOLS% (
    CALL "%VS90COMNTOOLS%\vsvars32.bat"
    GOTO :start_term
)

IF  EXIST %VS80COMNTOOLS% (
    CALL "%VS80COMNTOOLS%\vsvars32.bat"
    GOTO :start_term
)

:start_term

C:
chdir C:\cygwin\bin
START mintty.exe -i /Cygwin-Terminal.ico -

witkamp的答案适用于vs2005——对于vs2008,使用


调用“C:\Program Files(x86)\Microsoft Visual Studio 9.0\VC\vcvarsall.bat”

这个问题非常类似于。调用“%VS90COMNTOOLS%vsvars32.bat”更通用(更短)。我喜欢它!添加到答案中。这也适用于msys,假设您适当地关闭启动命令。gg这对我不起作用。minty shell(使用zsh)打开的没有环境设置。我做错了什么?