-2
當我在命令提示符下運行這個.bat文件時,它會拋出一個錯誤,即「文件名,目錄名稱或卷標語法不正確」。文件名,目錄名或卷標語法不正確
批處理文件contains--
nmake /nologo /f makefile /a
pause
makefile文件包含以下內容:
# nmake makefile to build a sample ADK MAC compliant application
# NOTE: EOSSDK is needed to resolve ADK Library references and header file includes
VRXSDK = C:\eVoAps\SDK\1.2.0\VRXSDK
#VXEOS = C:\eVoAps\EOSSDK\2.1.4
ADK = C:\eVoAps\ADK
VSFSTOOL = C:\Program Files\VERIFONE\FST
VRXIncludes = $(VRXSDK)\include
ADKIncludes = $(ADK)\VRX\Include
EOSIncludes = $(EOSSDKNEW)\include\ssl2
IncDir = .\Source
SrcDir = .\Source
ObjDir = .\Objects
OutDir = .\Download
EOSObjects = C:\eVoAps\SDK\1.2.0\EOSSDKNEW\lib
Includes = -I$(IncDir) -I$(VRXIncludes) -I$(EOSIncludes) -I$(ADKIncludes) -I$(SrcDir)
# Compiler options
# Ignoring warning 1295 - Deprecated declaration - give arg types
# Defiing _VRXEVO for Verix specific code in the sample.
COptions = -vsoapp -g -p -armcc,"--diag_suppress 1295" -D _VRXEVO -DLOGAPI_ENABLE_DEBUG -DVFI_GUIPRT_IMPORT -DVFI_MAC_DLL_IMPORT -DVFI_IPC_DLL_IMPORT -DVFI_SYSINFO_DLL_IMPORT -DVFI_SYSBAR_DLL_IMPORT
LinkOptions = -vsoapp -g -p
# NOTE: elog.o required to resolve references in the ADK libs. Log lib requires STL
# LibVFIMac only needed to resolve sysShowDesktop()
# svc_net.o required for mac library....
Libs = $(ADK)\vrx\lib\libvfiguiprt.so \
$(ADK)\vrx\lib\libvfiipc.so \
$(ADK)\vrx\lib\liblog.so\
$(ADK)\vrx\lib\libvfimac.so \
$(VRXSDK)\lib\vxstl.so \
$(EOSSDKNEW)\lib\svc_net.o \
$(EOSSDKNEW)\lib\elog.o
AppObjects = $(ObjDir)\BossApp.o
$(OutDir)\BossApp.vsa.p7s : $(OutDir)\BossApp.vsa
"$(VSFSTOOL)\FST" BossApp.fst
$(OutDir)\BossApp.vsa : $(AppObjects)
$(VRXSDK)\bin\vrxcc $(AppObjects) $(Libs) -o [email protected]
$(VRXSDK)\bin\vrxhdr -s 128000 -h 128000 -l ELOG.LIB=N:/ELOG.LIB -l NET.LIB=N:/NET.LIB
$(OutDir)\BossApp.vsa
###### Compile #######
$(ObjDir)\BossApp.o : $(SrcDir)\BossApp.cpp
$(VRXSDK)\bin\vrxcc -c $(Includes) $(COptions) -o $(ObjDir)\BossApp.o $(SrcDir)\BossApp.cpp
我無法弄清楚什麼我失蹤here.Please幫助我。
如果您希望我們幫助您,您需要描述您期望發生的事情以及代碼的實際作用...... – aschipfl
......這是什麼語言?這不是批次。它幾乎看起來像有人試圖爲Windows編寫bash。它是PowerShell嗎? – SomethingDark
這是makefile。 \t 批處理文件包含 - nmake/nologo/f makefile /暫停 – user5759780