【发布时间】:2013-06-21 20:48:13
【问题描述】:
在 Eclipse 和 Cygwin shell 中为 Cygwin C 项目运行 make 时,我遇到了不同的行为。
问题是路径名被转换为 Windows 路径。
我的生成文件:
all:
pwd
cd .; pwd
在 Cygwin shell 中运行 make(正确):
pwd
/cygdrive/c/myproject
cd .; pwd
/cygdrive/c/myproject
在 CDT 中运行构建(来自现有代码的新 Makefile 项目,Cygwin 工具链):
make all
pwd
/cygdrive/c/myproject
cd .; pwd
C:\myproject
它看到使用“。” (或“..”)导致路径“转换”为 Windows 路径。有什么建议吗?
【问题讨论】:
-
你能给我们一些输出吗?
-
我已经包含了在 cygwin shell 下构建和从 Eclipse 构建的输出。有缺陷的输出是 'C:\myproject' 行