Why can't the Borland C++ Builder 5 command li

2019-07-29 09:16发布

I have a bcb5 project group that I am trying to compile with make.exe. Make seems to run fine and generates a call to bcc32.exe, but that fails. Here is the call to bcc32.exe followed by the error.

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'. What's wrong here?

2条回答
ら.Afraid
2楼-- · 2019-07-29 09:35

A guess is that -nobj_files\ (near the end of the command) is causing the next space to be excaped. Try excaping the \ or removing it.

查看更多
戒情不戒烟
3楼-- · 2019-07-29 09:40

Thanks for the idea, strager. It was close, but the actual problem is the set of quotes around 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 takes a makefile and cleans up things such as trailing backslashes and escaped quotations.

查看更多
登录 后发表回答