简体   繁体   English

为什么Borland C ++ Builder 5命令行编译器找不到我的文件?

[英]Why can't the Borland C++ Builder 5 command line compiler find my files?

I have a bcb5 project group that I am trying to compile with make.exe. 我有一个bcb5项目组,我正在尝试使用make.exe进行编译。 Make seems to run fine and generates a call to bcc32.exe, but that fails. Make看起来运行良好,并生成了对bcc32.exe的调用,但是失败了。 Here is the call to bcc32.exe followed by the error. 这是对bcc32.exe的调用,后面是错误。

M:\projects\Project>"D:\Program Files\Borland\CBuilder5\Bin\bcc32.exe" -Od
-H=.\obj_files\vcl50.csm -Hc -Vx -Ve -X- -a8 -5 -b- -k- -vi -c -tW   -tWM -w
-par -IP:\b5\crc32\ISC\;Query;Z:\Bin\;Help;pas;D:\PROGRA~1\Borland\CBUILD~1\bin\
..\include;D:\PROGRA~1\Borland\CBUILD~1\bin\..\include\vcl;DataCenter;"P:\b5\Gif
Image\" -D;NO_STRICT;_RTLDLL -nobj_files\ help\chelp.cpp

Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland

Error E2266: No file names given

It appears to me that the file is obviously 'chelp.cpp'. 在我看来,该文件显然是“ chelp.cpp”。 What's wrong here? 怎么了

Thanks for the idea, strager. 谢谢你的主意,斯特拉格。 It was close, but the actual problem is the set of quotes around P:\\bg\\Gif Image. 已经很接近了,但是实际的问题是P:\\ bg \\ Gif Image周围的引号集。 Changing them to single quotes fixes the problem. 将它们更改为单引号可以解决此问题。

I believe this can be also be solved with FixMake: http://www.grassvalleysoftware.com/ . 我相信这也可以通过FixMake解决: http//www.grassvalleysoftware.com/ FixMake takes a makefile and cleans up things such as trailing backslashes and escaped quotations. FixMake提取一个makefile并清除诸如尾随反斜杠和转义引号之类的内容。

A guess is that -nobj_files\\ (near the end of the command) is causing the next space to be excaped. 一种猜测是-nobj_files\\ (在命令末尾附近)导致下一个空格被忽略。 Try excaping the \\ or removing it. 尝试覆盖\\或将其删除。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM