我有尝试编译使用Borland C++ Builder的6.0DOS报告的错误:错误的文件数
它是由Borland公司称为使(与bpr2mak创建makefile文件),它是由一个叫做静态库的批处理文件。 bat文件(用于使用Visual Studio和一些Borland C++ Builder遗留项目编译整个项目),该文件是从Cygwin中运行的bash shell脚本调用的。
当我直接从Cygwin的shell中运行.bat文件,它运行正常,但是当它从一个程序调用具有升压::进程::启动我得到这个错误的cygwin正在运行:
C:\ARQUIV~1\Borland\CBUILD~1\Bin\..\BIN\TLib /u bclibs.lib @[email protected]@@
DOS-reported error: Bad file number
TLIB 4.5 Copyright (c) 1987, 1999 Inprise Corporation
opening '[email protected]@@'
** error 1 ** deleting bclibs.lib
这是一个复杂的场景,但是这个调用cygwin的程序是在我们需要构建我们需要为各种Linux distos和Windows 32和64位构建的软件包时运行的。
注意:这是唯一的Borland的项目失败,其他的编译就好了(它使用Borland也是唯一的静态库,因此它可以是一些问题与TLib
工具
创建输入管道来解决。对于1)解决方案,唯一的区别是程序使用Boost :: Process设置的环境变量。 – Vargas 2010-07-05 12:05:33