by acwoo1 » Sat Nov 14, 2009 2:12 am
Thanks for your help
Now, there is no error message. An exe is created, but program does not launch.
My make file:
##############################################################################
# Template make file for FWH and Borland Make tool #
# Copyright FiveTech 2002 #
##############################################################################
# Make directives ############################################################
.autodepend
.swap
.suffixes: .prg .hrb
# .suffixes: .prg .obj
# Flags for modules to include: YES | NO (must be UPPERCASE)##################
RES_FILE = NO
LNK_DBFNTX = YES
LNK_DBFCDX = NO
LNK_DEBUG = NO
LNK_ADVANTAGE = NO
LNK_ODBC = NO
MAP_FILE = NO
# Application directories & filenames ########################################
APP_NAME = ecs # (Your EXE name without extension)
APP_PRG_DIR = .
# APP_OBJ_DIR = obj # (create the app\obj directory first)
APP_OBJ_DIR = . # (create the app\obj directory first)
APP_INCLUDE_DIR = .
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)
# Application PRG files (your PRG files go here) #############################
APP_PRG_LIST = \
ecs.prg \
c1.prg \
c2.prg \
c3.prg \
c4.prg \
c5.prg \
c6.prg \
c7.prg \
c8.prg \
c9.prg \
c10.prg \
test2.prg \
test5.prg \
test6.prg \
vrd.prg \
vrdbcode.prg \
vrdini.prg \
vrditem.prg \
easyprev.prg \
msgmeter.prg \
wbrowse.prg \
tfilexls.prg \
xlsError.prg \
xlsfunc.prg
# Contruction of the rest dependency lists ###################################
APP_PRGS = $(APP_PRG_LIST)
APP_HRBS = $(APP_PRG_LIST:.prg=.obj)
APP_OBJS = $(APP_PRG_LIST:.prg=.obj)
# Fivewin directories ########################################################
FIVEWIN_INCLUDE_DIR = c:\fwh\include
FIVEWIN_LIB_DIR = c:\fwh\lib
# Fivewin libraries ##########################################################
FIVE_LIB = $(FIVEWIN_LIB_DIR)\fiveH.lib
FIVEC_LIB = $(FIVEWIN_LIB_DIR)\fiveHC.lib
# Harbour directories & flags ################################################
HARBOUR_INCLUDE_DIR = c:\harbour\include
HARBOUR_EXE_DIR = c:\harbour\bin
HARBOUR_LIB_DIR = c:\harbour\lib
HARBOUR_FLAGS = -i$(APP_INCLUDE_DIR);$(FIVEWIN_INCLUDE_DIR);$(HARBOUR_INCLUDE_DIR) -n -m -w -es2 -gc0 -w0
HARBOUR_EXE = $(HARBOUR_EXE_DIR)\harbour.exe
#hdirl = HARBOUR_LIB_DIR
# Harbour libraries ##########################################################
RTL_LIB = $(HARBOUR_LIB_DIR)\hbrtl.lib
VM_LIB = $(HARBOUR_LIB_DIR)\hbvm.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)\dbfntx.lib
DBFCDX_LIB = $(HARBOUR_LIB_DIR)\dbfcdx.lib
DEBUG_LIB = $(HARBOUR_LIB_DIR)\hbdebug.lib
COMMON_LIB = $(HARBOUR_LIB_DIR)\hbcommon.lib
PP_LIB = $(HARBOUR_LIB_DIR)\hbpp.lib
RDDNTX_LIB = $(HARBOUR_LIB_DIR)\rddntx.lib
RDDCDX_LIB = $(HARBOUR_LIB_DIR)\rddcdx.lib
RDDFPT_LIB = $(HARBOUR_LIB_DIR)\rddfpt.lib
SIX_LIB = $(HARBOUR_LIB_DIR)\hbsix.lib
CPAGE_LIB = $(HARBOUR_LIB_DIR)\hbcpage.lib
WIN_LIB = $(HARBOUR_LIB_DIR)\hbwin.lib
CPLR_LIB = $(HARBOUR_LIB_DIR)\hbcplr.lib
GTGUI_LIB = $(HARBOUR_LIB_DIR)\gtgui.lib
# Advantage libraries ########################################################
RDDADS_LIB = $(HARBOUR_LIB_DIR)\rddads.lib
ACE32_LIB = $(FIVEWIN_LIB_DIR)\ace32.lib
# Borlanc directories & flags ################################################
BORLANDC_INCLUDE_DIR = c:\bcc55\include
BORLANDC_EXE_DIR = c:\bcc55\bin
BORLANDC_LIB_DIR = c:\bcc55\lib
BORLANDC_COMP_FLAGS = -c -O2 -I$(HARBOUR_INCLUDE_DIR);$(BORLANDC_INCLUDE_DIR)
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
# Borland libraries & files ##################################################
STARTUP_OBJ = $(BORLANDC_LIB_DIR)\c0w32.obj
CW32_LIB = $(BORLANDC_LIB_DIR)\cw32.lib
IMPORT32_LIB = $(BORLANDC_LIB_DIR)\import32.lib
ODBC32_LIB = $(BORLANDC_LIB_DIR)\psdk\odbc32.lib
MSIMG32_LIB = $(BORLANDC_LIB_DIR)\psdk\msimg32.lib
# Dependencies ###############################################################
all: $(APP_OBJS) $(APP_HRBS) $(APP_EXE)
!if $(RES_FILE) == YES
all: $(APP_RES)
!endif
# Implicit Rules #############################################################
.prg.hrb:
$(HARBOUR_EXE) $(HARBOUR_FLAGS) $** -o$@
.hrb.obj:
$(BORLANDC_COMP_EXE) $(BORLANDC_COMP_FLAGS) -o$@ $**
# Explicit Rules #############################################################
!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 $(RTL_LIB) + >> make.tmp
@echo $(VM_LIB) + >> make.tmp
@echo $(LANG_LIB) + >> make.tmp
@echo $(MACRO_LIB) + >> make.tmp
@echo $(RDD_LIB) + >> make.tmp
@echo $(RDDNTX_LIB) + >> make.tmp
@echo $(RDDCDX_LIB) + >> make.tmp
@echo $(RDDFPT_LIB) + >> make.tmp
@echo $(SIX_LIB) + >> make.tmp
@echo $(CPAGE_LIB) + >> make.tmp
@echo $(WIN_LIB) + >> make.tmp
@echo $(CPLR_LIB) + >> make.tmp
@echo $(GTGUI_LIB) + >> make.tmp
@echo $(MSIMG32_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 EASYPREV.LIB + >> make.tmp
@echo ZLIB1.LIB + >> make.tmp
@echo ZIPARCHIVE.LIB + >> make.tmp
@echo MAIL.LIB + >> make.tmp
@echo VRD.LIB + >> make.tmp
@echo EASYPREVIEW.LIB + >> make.tmp
@echo XLS42.LIB + >> make.tmp
@echo $(CW32_LIB) + >> make.tmp
@echo $(IMPORT32_LIB) + >> make.tmp
@echo FILEXLS.LIB + >> make.tmp
!if $(RES_FILE) == YES
@echo ,$(APP_RES) >> make.tmp
!endif
$(BORLANDC_LINK_EXE) $(BORLANDC_LINK_FLAGS) @make.tmp
@del $(APP_EXE_DIR)\$(APP_NAME).tds
@del make.tmp
Please help
Thanks
Regards
AC Woo
using fwh9.10+harbour+bcc55