我正在使用Borland 4.52构建一个旧项目,我遇到了这个问题。
当我的构建脚本进入包含汇编代码的模块时,我有:
INFO : root.compile : ==================================================
DEBUG : root.compile : Building module
INFO : root.compile : ==================================================
Cleaning...
INFO : root.compile : Thread Handler said : 1 was created
DEBUG : root.compile : Thread-100 : module_path
c:\make.exe: *** [c_des.obj] Error 1
ERROR : root.compile : when module_path ran, error: 2
DEBUG : root.compile : Stop thread : Thread-100
Flags and options : -1- -d -ml -w -f- -x- -v -R- -vi -RT- -P -DCAD
Generating OPT C Options File
Generating OPT ASM Options File
Compiling ../../../../source/lrc.c
"C:\Bc45\bin\bcc" +c.opt -c -olrc.obj ../../../../source/lrc.c
Borland C++ 4.52 Copyright (c) 1987, 1994 Borland International
../../../../source/lrc.c:
Compiling ../../../../source/c_des.c
"C:\Bc45\bin\bcc" +c.opt -c -oc_des.obj ../../../../source/c_des.c
Borland C++ 4.52 Copyright (c) 1987, 1994 Borland International
../../../../source/c_des.c:
Error: Unable to execute command 'tasm.exe'
WARNING : root.compile : XXXXXXXXXXXXXXXXXXXX
WARNING : root.compile : MODULE FAILED
WARNING : root.compile : XXXXXXXXXXXXXXXXXXXX
我已经查过:
当我在Borland中执行它并直接使用ASM文件时,没关系
Flags and Options : -1- -d -ml -w -f- -x- -v -R- -vi -P -RT- -DMAGIC510
-DCADHEX -D4WIRES -DCAD1 -DAGP_2 -DTERM_TYPE=1
Generating OPT C Options File
Generating OPT ASM Options File
Assembling ../../../../source/bcpp31.asm
Turbo Assembler Version 4.1 Copyright (c) 1988, 1996 Borland International
Assembling file: ..\..\..\..\source\bcpp31.asm
Assembling for the large memory model
Paradigm LOCATE Borland C++ 3.10 Startup Support
*Warning* ..\..\..\..\source\bcpp31.asm(657) Module is pass dependent - com
patibility pass was done
Error messages: None
Warning messages: 1
Passes: 2
Remaining memory: 391k
Compiling ../../../../source/bcpprtl.asm
Turbo Assembler Version 4.1 Copyright (c) 1988, 1996 Borland International
Assembling file: ..\..\..\..\source\bcpprtl.asm
Assembling for the large memory model
*Warning* ..\..\..\..\source\bcpprtl.asm(142) Module is pass dependent - compati
bility pass was done
Error messages: None
Warning messages: 1
Passes: 2
Remaining memory: 398k
Build complete bcpp31.obj bcpprtl.obj are up-to-date
并且,它在具有相同操作系统的其他计算机(Seven Entreprise SP 1)中运行良好。
如果您有任何其他想法,我将不胜感激。
由于
答案 0 :(得分:1)
检查PATH中Borland的路径是否在前几(128)个字符内,如果没有将其移动到开头。检查PATH中是否没有其他tasm.exe而不是Borland。