Cygwin无法从/cygdrive找到我的编译器
cygwin cannot find my compiler from /cygdrive
我有一个从/cygdrive/c/path/to/compiler
调用编译器的makefile
当我在 cygwin shell 中时,我可以正确调用它,但是从 makefile 内部,绝对路径返回 "The system cannot find the file specified"
.
我不明白为什么制作文件不理解绝对的cygdrive路径
编辑*
事实上,任何具有绝对路径的命令都会失败。
/usr/bin/touch
也将返回"The system cannot find the file specified"
.
在生成文件中使用可执行文件的绝对路径是一种不好的做法。你应该能够把它放在制作文件中
CC=gcc
那么只要gcc.exe
在你的PATH
它就会起作用。如果你碰巧在交叉编译,你可以从命令行运行它
make CC=i686-w64-mingw32-gcc
裁判
相关文章:
- C++为什么我的编译器成功了,但我的计算机给出了调试错误?
- C++初学者:为什么我的编译器根据我的循环返回"name not found"?
- 为什么我的编译器无法弄清楚这种转换,它何时存在?
- 为什么我的编译器在调用 const getter 函数时抛出"转换丢失(const)限定符"错误?
- 为什么我的编译器将字符串感知为常量字符[]?
- 我把我的编译器从32位转换为64位,但我仍然不能使用超过2GB:(为什么
- 我的编译器是否忽略了我未使用的静态thread_local类成员
- 我不明白我的编译器是如何获得此输出的
- 学习C,我的编译器已经知道bool(Visual Studio 2017)
- C ++中的函数为什么我的编译器无法识别错误()
- 为什么我的编译器在执行此代码时出现分段错误?
- 这是C++模板声明真的不正确还是我的编译器搞砸了
- 为什么我的编译器显示有关我的 constexpr 函数的此错误?
- 如何使我的C 编译器发出constexpr值(例如警告?)
- 我不明白我的编译器是如何获得此输出的C++
- 当我要修改指针到常量整数时,为什么我的编译器不显示错误
- 如何让我的编译器更愚蠢(索引错误)
- QT 5.7将-STD = GNU 11添加到我的编译器标志,Clobbering -Std = C 14
- 我包括Ws2tcpip.h,但我的编译器说inet_ntop是未声明的
- 我如何知道我的编译器是否支持XXXXC++11功能