【问题标题】:Compliling Visual Studio 6 C project from git bash从 git bash 编译 Visual Studio 6 C 项目
【发布时间】:2012-09-18 18:35:53
【问题描述】:

我正在尝试自动构建 Visual Studio 6 项目(用 C 编写)。我可以从 Windows 控制台使用以下命令构建项目 (.dsp):

msdev reg.dsp /make "reg - Win32 Release"

但我不能从 GIT bash 中做到这一点。它所做的只是在visual studio中打开项目,并报告以下错误:

C:/Program Files/Git/make
File not found.
Please verify that the path and the file name are correct.

sh --version 说明如下:

GNU bash, version 3.1.0(1)-release (i686-pc-msys)
Copyright (C) 2005 Free Software Foundation, Inc.

那么,如何在 GIT Bash 控制台中构建 Visual Studio 6 C 项目?

【问题讨论】:

    标签: makefile git-bash visual-studio-6


    【解决方案1】:

    我猜当我在 Windows 上的 git bash 中发送 /(斜杠)参数时会发生一些奇怪的事情。我用-(破折号/减号)替换了那些,所以构建命令如下所示,它终于起作用了:

    msdev reg.dsp -make "reg - Win32 Release"
    

    在一个 shell 脚本中它看起来像这样(以防有人发现这很有用):

    command="msdev ../reg.dsp -MAKE \"reg - Win32 Release\""
    eval $command
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-11-19
      • 2012-01-06
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多