Different errors while compiling

Different errors while compiling

Postby ellano » Tue Sep 15, 2009 12:48 pm

After two days of battling with a rmake file (I am new to FiveWin for Harbour), I finally came up with something decent that did work (somewhat :( ). The problem is that it is lacking some mysterious library (shouldn’t we have by now a list of libraries vs. functions somewhere?) The culprits here are:

_HB_fun_getfreesys
_hb_fun_dbsetfilterto
_hb_fun_printerset

Is there a good Samaritan that can help me out of this?

Thanks
ellano
 
Posts: 107
Joined: Tue Sep 15, 2009 7:52 am

Re: Different errors while compiling

Postby ukoenig » Tue Sep 15, 2009 1:48 pm

Try this ( used for xharbour )
Change the Install-Path of xHARBOUR, BCC and FWH, if needed.

a Batch-File : Go.bat

if not exist obj md obj
c:\bcc55\bin\make -f Start.rmk


File : Start.rmk

#Borland make sample, (c) FiveTech Software 2005

HBDIR=c:\xharbour
BCDIR=c:\bcc55
FWDIR=c:\fwh

.path.OBJ = .\obj
.path.PRG = .\
.path.CH = $(FWDIR)\include;$(HBDIR)\include
.path.C = .\
.path.rc = .\

PRG = \
Test1.PRG \
Test2.PRG \
Test3.PRG

# C = \
# two.C

PROJECT : Test.exe

Test.exe : $(PRG:.PRG=.OBJ) $(C:.C=.OBJ) test.res
echo off
echo $(BCDIR)\bin\c0w32.obj + > b32.bc

# OBJ-Liste
# -------------
echo obj\test1.obj \
obj\test2.obj \
obj\test3.obj, + >> b32.bc

echo test.exe, + >> b32.bc
echo test.map, + >> b32.bc

# Fivewin Lib`s für xHARBOUR
# --------------------------------------

echo $(FWDIR)\lib\Fivehx.lib $(FWDIR)\lib\FiveHC.lib + >> b32.bc

# xHARBOUR-Lib`s
# -----------------------

echo $(HBDIR)\lib\rtl.lib + >> b32.bc
echo $(HBDIR)\lib\vm.lib + >> b32.bc
echo $(HBDIR)\lib\gtgui.lib + >> b32.bc
echo $(HBDIR)\lib\lang.lib + >> b32.bc
echo $(HBDIR)\lib\macro.lib + >> b32.bc
echo $(HBDIR)\lib\rdd.lib + >> b32.bc
echo $(HBDIR)\lib\dbfntx.lib + >> b32.bc
echo $(HBDIR)\lib\dbfcdx.lib + >> b32.bc
echo $(HBDIR)\lib\dbffpt.lib + >> b32.bc
echo $(HBDIR)\lib\hbsix.lib + >> b32.bc
echo $(HBDIR)\lib\debug.lib + >> b32.bc
echo $(HBDIR)\lib\common.lib + >> b32.bc
echo $(HBDIR)\lib\pp.lib + >> b32.bc
echo $(HBDIR)\lib\codepage.lib + >> b32.bc
echo $(HBDIR)\lib\pcrepos.lib + >> b32.bc

# Uncomment these two lines to use Advantage RDD
# echo $(HBDIR)\lib\rddads.lib + >> b32.bc
# echo $(HBDIR)\lib\Ace32.lib + >> b32.bc

echo $(BCDIR)\lib\cw32.lib + >> b32.bc
echo $(BCDIR)\lib\import32.lib + >> b32.bc
echo $(BCDIR)\lib\uuid.lib + >> b32.bc
echo $(BCDIR)\lib\psdk\odbc32.lib + >> b32.bc
echo $(BCDIR)\lib\psdk\nddeapi.lib + >> b32.bc
echo $(BCDIR)\lib\psdk\iphlpapi.lib + >> b32.bc
echo $(BCDIR)\lib\psdk\msimg32.lib + >> b32.bc
echo $(BCDIR)\lib\psdk\rasapi32.lib, >> b32.bc

IF EXIST test.res echo test.res >> b32.bc
$(BCDIR)\bin\ilink32 -Gn -aa -Tpe -s -v @b32.bc
# $(BCDIR)\bin\ilink32 -Gn -aa -Tpe -s @b32.bc
del b32.bc

.PRG.OBJ:
$(HBDIR)\bin\harbour $< /N /W /Oobj\ /I$(FWDIR)\include;$(HBDIR)\include > clip.log
$(BCDIR)\bin\bcc32 -c -tWM -I$(HBDIR)\include -oobj\$& obj\$&.c

.C.OBJ:
echo -c -tWM -D__HARBOUR__ -DHB_API_MACROS > tmp
echo -I$(HBDIR)\include;$(FWDIR)\include >> tmp
$(BCDIR)\bin\bcc32 -oobj\$& @tmp $&.c
del tmp

test.res : test.rc
$(BCDIR)\bin\brc32.exe -r test.rc


Best Regards
Uwe :lol:
Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Re: Different errors while compiling

Postby ellano » Tue Sep 15, 2009 2:08 pm

I will respond myself:

1. I tried all libraries from the Harbour LIB directory: The error still persisted. This persuaded me that the error was on my programs instead of a missing library.
2. The solution was to
a) Change MENUITEM "Printer" MESSAGE "Define Printer" ACTION PrinterSet() to
MENUITEM "&Printer" MESSAGE "Define printer" ACTION PrinterSetUp()

b )Change DBSETFILTERTO() to DBCLEARFILTER()
c )Change
REDEFINE SAY ID 106 PROMPT padr(str( GetFreeSys() , 9 ), 9)+ "% disp." of oDlg
to REDEFINE SAY ID 106 PROMPT padr(str( GetFreeSpace() , 9 ), 9)+ "% disp." of oDlg //free memory

3. The linking errors disappeared.

Thanks to all
ellano
 
Posts: 107
Joined: Tue Sep 15, 2009 7:52 am


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 99 guests