我对这个完全陌生。我有一个 C 程序,可以很好地编译并在 Linux 上运行良好。我想在 Windows 机器上运行相同的代码,所以我使用交叉编译器 Mingw。但是,每次我尝试构建项目时,都会出现此错误:
14:51:21 **** Incremental Build of configuration Default for project zbar-0.10 ****
make all
make all-am
make[1]: Entering directory `D:/zbar-0.10'
! was unexpected at this time.
make[1]: *** [include/config.h] Error 255
make[1]: Leaving directory `D:/zbar-0.10'
make: *** [all] Error 2
14:51:26 Build Finished (took 4s.493ms)
我用谷歌搜索了一下,但仍然不明白为什么我会得到它。有什么建议吗?
最佳答案
使用以下指定的准确版本的工具构建:http://sourceforge.net/apps/mediawiki/zbar/index.php?title=HOWTO:_Compile_with_MinGW_in_Windows
代码是旧的,make 会随着新版本的出现而中断。
关于linux - 在 Windows 上使用 Mingw 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17949057/