Estoy usando el Bmake con un archivo .MAK para construir aplicaciones en Windows 7
Cuando lo ejecuto en una carpeta determinada, la aplicacion se construye perfectamente
Si lo ejecuto en una carpeta distinta para construir otra aplicacion me da el error que les muestro debajo
- Code: Select all Expand view
MAKE Version 5.2 Copyright (c) 1987, 2000 Borland
bcc32 /c trazafar.c
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
trazafar.c:
Error E2209 trazafar.c 7: Unable to open include file 'hbvmpub.h'
Error E2209 trazafar.c 8: Unable to open include file 'hbinit.h'
Error E2258 trazafar.c 11: Declaration was expected in function HB_FUNC
Error E2258 trazafar.c 12: Declaration was expected in function HB_FUNC
Error E2258 trazafar.c 13: Declaration was expected in function HB_FUNC
Error E2258 trazafar.c 14: Declaration was expected in function HB_FUNC
Error E2258 trazafar.c 15: Declaration was expected in function HB_FUNC
Error E2258 trazafar.c 16: Declaration was expected in function HB_FUNC
Error E2258 trazafar.c 17: Declaration was expected in function HB_FUNC
Error E2258 trazafar.c 18: Declaration was expected in function HB_FUNC
Error E2258 trazafar.c 19: Declaration was expected in function HB_FUNC
Error E2258 trazafar.c 20: Declaration was expected in function HB_FUNC
Error E2258 trazafar.c 21: Declaration was expected in function HB_FUNC
Error E2258 trazafar.c 22: Declaration was expected in function HB_FUNC
Error E2258 trazafar.c 23: Declaration was expected in function HB_FUNC
Error E2258 trazafar.c 24: Declaration was expected in function HB_FUNC
Error E2258 trazafar.c 25: Declaration was expected in function HB_FUNC
Error E2258 trazafar.c 26: Declaration was expected in function HB_FUNC
Error E2258 trazafar.c 27: Declaration was expected in function HB_FUNC
Error E2258 trazafar.c 28: Declaration was expected in function HB_FUNC
Error E2258 trazafar.c 29: Declaration was expected in function HB_FUNC
Error E2258 trazafar.c 30: Declaration was expected in function HB_FUNC
Error E2258 trazafar.c 31: Declaration was expected in function HB_FUNC
Error E2258 trazafar.c 32: Declaration was exparpeta y le actualizo los nombres de aplicacion y prgected in function HB_FUNC
Error E2258 trazafar.c 33: Declaration was expected in function HB_FUNC
Error E2228 trazafar.c 33: Too many error or warning messages in function HB_FUNC
*** 26 errors in Compile ***
** error 1 ** deleting c:\trazafar\OBJ\trazafar.obj
He verificado todos los paths en el archivo .MAK y estan correctos, al igual que la sintaxis ya que hago una copia del que funciona
en la primer carpeta actualizando el nombre de aplicacion y prg's a usar.
Les adjunto el archivo .MAK para que vean si se me esta pasando algo
- Code: Select all Expand view
- ##############################################################################
# Template make file for FWH and Borland Make tool #
# Copyright FiveTech 2002 #
# Written by Ignacio Ortiz de Zuñiga #
##############################################################################
# Make directives ############################################################
.autodepend
.swap
.suffixes: .prg .hrb
# Flags for modules to include: YES | NO (must be UPPERCASE)##################
RES_FILE = YES
LNK_DBFNTX = YES
LNK_DBFCDX = YES
LNK_DEBUG = NO
LNK_ADVANTAGE = NO
LNK_ODBC = NO
MAP_FILE = YES
# Application directories & filenames ########################################
APP_NAME = TRAZAFAR # ( nombre del EXE sin extension )
APP_PRG_DIR = c:\trazafar
APP_OBJ_DIR = c:\trazafar\OBJ # ( crear directorio app\obj )
APP_INCLUDE_DIR = c:\trazafar
APP_EXE_DIR = $(APP_PRG_DIR)
APP_RES_DIR = $(APP_PRG_DIR)
APP_EXE = $(APP_EXE_DIR)\$(APP_NAME).exe
APP_RC = $(APP_RES_DIR)\$(APP_NAME).rc
APP_RES = $(APP_RES_DIR)\$(APP_NAME).res
APP_MAP = $(APP_RES_DIR)\$(APP_NAME).map
# Paths for dependent files ##################################################
.path.prg = $(APP_PRG_DIR)
.path.hrb = $(APP_OBJ_DIR)
.path.obj = $(APP_OBJ_DIR)
# programas PRG (los PRG fuentes van aqui) #############################
APP_PRG_LIST = \
trazafar.prg \
rpreview.prg
# APP_PRG_LIST2 =
# Contruccion del resto de la lista de dependencias ###################################
APP_PRGS = $(APP_PRG_LIST) # $(APP_PRG_LIST2)
APP_HRBS = $(APP_PRG_LIST:.prg=.hrb)
APP_OBJS = $(APP_PRG_LIST:.prg=.obj)
# Fivewin directorios ########################################################
FIVEWIN_INCLUDE_DIR = c:\fwh\include
FIVEWIN_LIB_DIR = c:\fwh\lib
MI_LIB_DIR = c:\trazafar\lib
# Fivewin librerias ##########################################################
FIVE_LIB = $(FIVEWIN_LIB_DIR)\fiveH.lib
FIVEC_LIB = $(FIVEWIN_LIB_DIR)\fiveHC.lib
FIVEXLS_LIB = $(FIVEWIN_LIB_DIR)\filexlsh.lib
# Harbour directorios & flags ################################################
HARBOUR_INCLUDE_DIR = c:\hb30\include
HARBOUR_EXE_DIR = c:\hb30\bin
HARBOUR_LIB_DIR = c:\hb30\lib
HARBOUR_FLAGS = -i$(APP_INCLUDE_DIR);$(HARBOUR_INCLUDE_DIR);$(FIVEWIN_INCLUDE_DIR) -n -m -a -es2 -gc0
HARBOUR_EXE = $(HARBOUR_EXE_DIR)\harbour.exe
# Harbour librerias ##########################################################
BTNGET_LIB = $(HARBOUR_LIB_DIR)\btnget32.lib
RTL_LIB = $(HARBOUR_LIB_DIR)\hbrtl.lib
VM_LIB = $(HARBOUR_LIB_DIR)\hbvm.lib
GTGUI_LIB = $(HARBOUR_LIB_DIR)\gtgui.lib
LANG_LIB = $(HARBOUR_LIB_DIR)\hblang.lib
MACRO_LIB = $(HARBOUR_LIB_DIR)\hbmacro.lib
RDD_LIB = $(HARBOUR_LIB_DIR)\hbrdd.lib
DBFNTX_LIB = $(HARBOUR_LIB_DIR)\rddntx.lib
DBFCDX_LIB = $(HARBOUR_LIB_DIR)\rddcdx.lib
DBFFPT_LIB = $(HARBOUR_LIB_DIR)\rddfpt.lib
LETO_LIB = $(HARBOUR_LIB_DIR)\rddleto.lib
SIX_LIB = $(HARBOUR_LIB_DIR)\hbsix.lib
SIX_EXT = $(HARBOUR_LIB_DIR)\hbextern
DEBUG_LIB = $(HARBOUR_LIB_DIR)\hbdebug.lib
COMMON_LIB = $(HARBOUR_LIB_DIR)\hbcommon.lib
PP_LIB = $(HARBOUR_LIB_DIR)\hbpp.lib
CPAGE_LIB = $(HARBOUR_LIB_DIR)\hbcpage.lib
WIN_LIB = $(HARBOUR_LIB_DIR)\hbwin.lib
CPLR_LIB = $(HARBOUR_LIB_DIR)\hbcplr.lib
ZIP_LIB = $(HARBOUR_LIB_DIR)\hbmzip.lib
ARC_LIB = $(HARBOUR_LIB_DIR)\hbziparc.lib
Z_LIB = $(HARBOUR_LIB_DIR)\hbzlib.lib
MINI_LIB = $(HARBOUR_LIB_DIR)\minizip.lib
TIP_LIB = $(HARBOUR_LIB_DIR)\hbtip.lib
TIPSSL_LIB = $(HARBOUR_LIB_DIR)\hbtipssl.lib
HBSSL_LIB = $(HARBOUR_LIB_DIR)\hbssl.lib
HBSSLS_LIB = $(HARBOUR_LIB_DIR)\hbssls.lib
PCRE_LIB = $(HARBOUR_LIB_DIR)\hbpcre.lib
CT_LIB = $(HARBOUR_LIB_DIR)\hbct.lib
XPP_LIB = $(HARBOUR_LIB_DIR)\hbxpp.lib
X_LIB = $(HARBOUR_LIB_DIR)\xhb.lib
CP_LIB = $(HARBOUR_LIB_DIR)\hbcplr.lib
XML_LIB = $(HARBOUR_LIB_DIR)\hbmxml.lib
# Advantage Data Server librerias ##########################################
RDDADS_LIB = $(HARBOUR_LIB_DIR)\rddads.lib
ACE_LIB = $(HARBOUR_LIB_DIR)\ace32.lib
# Borlanc directorios & flags ################################################
BORLANDC_INCLUDE_DIR = c:\bcc55\include
BORLANDC_EXE_DIR = c:\bcc55\bin
BORLANDC_LIB_DIR = c:\bcc55\lib
BORLANDC_COMP_FLAGS = -tWM -DHB_GUI -DHB_API_MACROS -DHB_STACK_MACROS -DHB_FM_STATISTICS_OFF -d -a8 -OS -O2 -5 -c -Ic:\hb30\include;c:\bcc55\include # @b32.bc
BORLANDC_COMP_EXE = $(BORLANDC_EXE_DIR)\bcc32.exe
BORLANDC_LINK_FLAGS = -Gn -aa -Tpe -s -I$(APP_OBJ_DIR)
BORLANDC_LINK_EXE = $(BORLANDC_EXE_DIR)\ilink32.exe
BORLANDC_RES_EXE = $(BORLANDC_EXE_DIR)\brc32.exe
!if $(MAP_FILE) != YES
BORLANDC_LINK_FLAGS = $(BORLANDC_LINK_FLAGS) -x
!endif
# Borlandc librerias & archivos ##################################################
STARTUP_OBJ = $(BORLANDC_LIB_DIR)\c0w32.obj
CW32_LIB = $(BORLANDC_LIB_DIR)\cw32.lib
IMPORT32_LIB = $(BORLANDC_LIB_DIR)\import32.lib
WS32_LIB = $(BORLANDC_LIB_DIR)\ws2_32.lib
UUID_LIB = $(BORLANDC_LIB_DIR)\uuid.lib
ODBC32_LIB = $(BORLANDC_LIB_DIR)\psdk\odbc32.lib
NDDEAPI_LIB = $(BORLANDC_LIB_DIR)\psdk\nddeapi.lib
IPHL_LIB = $(BORLANDC_LIB_DIR)\psdk\iphlpapi.lib
IMG32_LIB = $(BORLANDC_LIB_DIR)\psdk\msimg32.lib
RASAPI32_LIB = $(BORLANDC_LIB_DIR)\psdk\rasapi32.lib
# Dependencias ###############################################################
all: $(APP_OBJS) $(APP_HRBS) $(APP_EXE)
!if $(RES_FILE) == YES
all: $(APP_RES)
!endif
# Reglas implicitas #############################################################
.prg.hrb:
$(HARBOUR_EXE) $(HARBOUR_FLAGS) $** -o$@
.hrb.obj:
$(BORLANDC_COMP_EXE) $(BORLANDC_COMP_FLAGS) -o$@ $**
# Reglas Explicitas #############################################################
!if $(RES_FILE) == YES
$(APP_RES) : $(APP_RC)
$(BORLANDC_RES_EXE) -r $**
$(APP_EXE) :: $(APP_RES)
@if exist $(APP_EXE) del $(APP_EXE) > nul
!endif
$(APP_EXE) :: $(APP_OBJS)
@echo $(STARTUP_OBJ) + > make.tmp
@echo $(**), + >> make.tmp
@echo $(APP_EXE), + >> make.tmp
@echo $(APP_MAP), + >> make.tmp
@echo $(FIVE_LIB) + >> make.tmp
@echo $(FIVEC_LIB) + >> make.tmp
@echo $(FIVEXLS_LIB) + >> make.tmp
@echo $(BTNGET_LIB) + >> make.tmp
@echo $(RTL_LIB) + >> make.tmp
@echo $(VM_LIB) + >> make.tmp
@echo $(GTGUI_LIB) + >> make.tmp
@echo $(LANG_LIB) + >> make.tmp
@echo $(MACRO_LIB) + >> make.tmp
@echo $(RDD_LIB) + >> make.tmp
@echo $(DBFFPT_LIB) + >> make.tmp
@echo $(LETO_LIB) + >> make.tmp
@echo $(SIX_LIB) + >> make.tmp
@echo $(SIX_EXT) + >> make.tmp
@echo $(PP_LIB) + >> make.tmp
@echo $(CPAGE_LIB) + >> make.tmp
@echo $(WIN_LIB) + >> make.tmp
@echo $(CPLR_LIB) + >> make.tmp
@echo $(ZIP_LIB) + >> make.tmp
@echo $(ARC_LIB) + >> make.tmp
@echo $(Z_LIB) + >> make.tmp
@echo $(MINI_LIB) + >> make.tmp
@echo $(TIP_LIB) + >> make.tmp
@echo $(TIPSSL_LIB) + >> make.tmp
@echo $(HBSSL_LIB) + >> make.tmp
@echo $(HBSSLS_LIB) + >> make.tmp
@echo $(PCRE_LIB) + >> make.tmp
@echo $(CT_LIB) + >> make.tmp
@echo $(XPP_LIB) + >> make.tmp
@echo $(XML_LIB) + >> make.tmp
@echo $(X_LIB) + >> make.tmp
@echo $(CP_LIB) + >> make.tmp
@echo $(RDDADS_LIB) + >> make.tmp
@echo $(ACE_LIB) + >> make.tmp
!if $(LNK_DBFNTX) == YES
@echo $(DBFNTX_LIB) + >> make.tmp
!endif
!if $(LNK_DBFCDX) == YES
@echo $(DBFCDX_LIB) + >> make.tmp
!endif
!if $(LNK_DEBUG) == YES
@echo $(DEBUG_LIB) + >> make.tmp
!endif
@echo $(COMMON_LIB) + >> make.tmp
@echo $(PP_LIB) + >> make.tmp
!if $(LNK_ADVANTAGE) == YES
@echo $(RDDADS_LIB) + >> make.tmp
@echo $(ACE32_LIB) + >> make.tmp
!endif
!if $(LNK_ODBC) == YES
@echo $(ODBC32_LIB) + >> make.tmp
!endif
@echo $(CW32_LIB) + >> make.tmp
@echo $(NDDEAPI_LIB) + >> make.tmp
@echo $(IPHL_LIB) + >> make.tmp
@echo $(IMG32_LIB) + >> make.tmp
@echo $(WS32_LIB) + >> make.tmp
@echo $(RASAPI32_LIB) + >> make.tmp
@echo $(UUID_LIB) + >> make.tmp
@echo $(IMPORT32_LIB), + >> make.tmp
!if $(RES_FILE) == YES
@echo ,$(APP_RES) >> make.tmp
!endif
$(BORLANDC_LINK_EXE) $(BORLANDC_LINK_FLAGS) @make.tmp
@del $(APP_NAME).tds
@del make.tmp
a ver si alguien se da cuenta de que es lo que pasa
muchas gracias