FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Compile Error Borland FWH 1201
Posts: 2706
Joined: Fri Oct 07, 2005 01:50 PM
Compile Error Borland FWH 1201
Posted: Thu Feb 02, 2012 10:17 PM
To All

Just Upgraded xHarbour\FWH from Borland 55 version 910 to Borland 582 version 1201 and am getting a compile error. I have gone through BuildX.bat and checked my Libs .. and everything seems in order .. Here is my updated xMate environment.

I would appreciate if anyone could point our any errors or omissions ..

Thanks
Rick Lipkin

Code (fw): Select all Collapse
[Environment]
Description 1=Updated for FWH 1201
Description 2=
Description 3=
PRG Compiler ver=xHarbour
C compiler ver=Bcc582
Subsystem=FWH1210
Author=Richard Lipkin
Last update=02/01/2012

[Advanced]
Command types=1,1,1,1,1,1,1,1,1

[Harbour]
HB_INSTALL=C:\XHARBOUR
HB_COMMAND=%HB_BIN_INSTALL%\Harbour.Exe %PRG% /m /n /gc0 /w0 /es2 /a /i%HB_INC_INSTALL% /d__EXPORT__
Option prefix=/

[C]
C_INSTALL=C:\Borland\bcc582
C_COMP_COMMAND=%C_BIN_INSTALL%\Bcc32.Exe -M -c -v %CRLF%-DHB_OS_WIN_32 %CRLF%-I%C_INC_INSTALL%;%HB_INC_INSTALL%  -n%HOME%\Obj %C%
C_LIB_COMMAND=%C_BIN_INSTALL%\TLib.Exe %LIB% /P512 @%RSP% , %LST%
C_LINK_COMMAND=%C_BIN_INSTALL%\iLink32.Exe -Gn -aa -Tpe -s -v @%LNK%
C_RC_COMMAND=%C_BIN_INSTALL%\Brc32.Exe -r  -fo%RES%  %RC%
C_DLL_COMMAND=
Option prefix=-

[User]
POSTEXE_COMMAND=
POSTLIB_COMMAND=
POSTDLL_COMMAND=

[Files]
C:\FWH1201\LIB\Fivehx.lib=1
C:\FWH1201\LIB\Fivehc.lib=2
%HB_LIB_INSTALL%\rtl.lib=3
%HB_LIB_INSTALL%\vm.lib=4
%HB_LIB_INSTALL%\gtgui.lib=5
%HB_LIB_INSTALL%\lang.lib=6
%HB_LIB_INSTALL%\macro.lib=7
%HB_LIB_INSTALL%\rdd.lib=8
%HB_LIB_INSTALL%\dbfcdx.lib=9
%HB_LIB_INSTALL%\dbffpt.lib=10
%HB_LIB_INSTALL%\dbfntx.lib=11
%HB_LIB_INSTALL%\hbsix.lib=12
%HB_LIB_INSTALL%\debug.lib=13
%HB_LIB_INSTALL%\common.lib=14
%HB_LIB_INSTALL%\pp.lib=15
%HB_LIB_INSTALL%\pcrepos.lib=16
%HB_LIB_INSTALL%\ct.lib=17
%HB_LIB_INSTALL%\zlib.lib=18
%HB_LIB_INSTALL%\png.lib=19
%C_LIB_INSTALL%\CW32.LIB=20
%C_LIB_INSTALL%\IMPORT32.LIB=21
%C_LIB_INSTALL%\uuid.lib=22
%C_LIB_INSTALL%\PSDK\odbc32.lib=23
%C_LIB_INSTALL%\PSDK\rassapi.lib=24
%C_LIB_INSTALL%\PSDK\nddeapi.lib=25
%C_LIB_INSTALL%\PSDK\msimg32.lib=26
%C_LIB_INSTALL%\PSDK\psapi.lib=27
%C_LIB_INSTALL%\PSDK\GdiPlus.lib=28
%C_LIB_INSTALL%\PSDK\iphlpapi.lib=29

[DLL Files]
%C_LIB_INSTALL%\import32.lib=1
%HB_LIB_INSTALL%\harbour.lib=2
%C_LIB_INSTALL%\c0w32w.obj=3
%C_LIB_INSTALL%\cw32.lib=4


Posts: 1789
Joined: Tue Oct 11, 2005 05:01 PM
Re: Compile Error Borland FWH 1201
Posted: Thu Feb 02, 2012 10:23 PM
me parece que te falta
%C_LIB_INSTALL%\C0W32.OBJ=1

revisa mi env.

salu2

Code (fw): Select all Collapse
[Environment]
Description 1=xHarbour compiler for windows
Description 2=
Description 3=
PRG Compiler ver=1.2.1
C compiler ver=6.43
Subsystem=GTGUI
Author=Carlos Vargas
Last update=01/30/2012

[Advanced]
Command types=1,1,1,1,1,1,1,1,1

[Harbour]
HB_INSTALL=D:\borland\xharbour
HB_COMMAND=%HB_BIN_INSTALL%\Harbour.Exe %PRG% /m /n /gc0 /w0 /es2 /i%HB_INC_INSTALL% /q0 /d__XHARBOUR__;__HARBOUR__
Option prefix=/

[C]
C_INSTALL=D:\borland\bcc641
C_COMP_COMMAND=%C_BIN_INSTALL%\Bcc32.Exe %CRLF%-M -c -O2 -e  -tWM -q %CRLF%-D__HARBOUR__ %CRLF%-D__XHARBOUR__ %CRLF%-I%HB_INC_INSTALL%;%C_INC_INSTALL%  -n%HOME%\Obj %C%%CRLF%%CRLF%
C_LIB_COMMAND=%C_BIN_INSTALL%\TLib.Exe %LIB% /P1024 @%RSP% , %LST%
C_LINK_COMMAND=%C_BIN_INSTALL%\iLink32.Exe -Gn -q -aa -Tpe -x  @%LNK%
C_RC_COMMAND=%C_BIN_INSTALL%\brc32.exe -r -i%C_INC_INSTALL%\windows\sdk -I%C_INC_INSTALL%\windows\crtl -fo%RES%  %RC%
C_DLL_COMMAND=%C_BIN_INSTALL%\iLink32.Exe -Gn -q -aa -Tpd -M -L%C_LIB_INSTALL% @%LNK%
Option prefix=-

[User]
POSTEXE_COMMAND=
POSTLIB_COMMAND=
POSTDLL_COMMAND=

[Files]
%C_LIB_INSTALL%\C0W32.OBJ=1
D:\fwh\lib\twbrowsex.lib=2
D:\fwh\lib\patchx.lib=3
D:\fwh\lib\filexlsx.lib=4
D:\fwh\lib\fivehx.lib=5
D:\fwh\lib\fivehc.lib=6
%HB_LIB_INSTALL%\rtl.lib=7
%HB_LIB_INSTALL%\vm.lib=8
%HB_LIB_INSTALL%\gtgui.lib=9
%HB_LIB_INSTALL%\lang.lib=10
%HB_LIB_INSTALL%\macro.lib=11
%HB_LIB_INSTALL%\common.lib=12
%HB_LIB_INSTALL%\codepage.lib=13
%HB_LIB_INSTALL%\pp.lib=14
%HB_LIB_INSTALL%\rdd.lib=15
%HB_LIB_INSTALL%\dbfcdx.lib=16
%HB_LIB_INSTALL%\dbffpt.lib=17
%HB_LIB_INSTALL%\dbfntx.lib=18
%HB_LIB_INSTALL%\hbsix.lib=19
%HB_LIB_INSTALL%\ace32.lib=20
%HB_LIB_INSTALL%\rddads.lib=21
%HB_LIB_INSTALL%\pcrepos.lib=22
%HB_LIB_INSTALL%\zlib.lib=23
%HB_LIB_INSTALL%\ct.lib=24
%HB_LIB_INSTALL%\libnf.lib=25
%HB_LIB_INSTALL%\png.lib=26
%C_LIB_INSTALL%\CW32.LIB=27
%C_LIB_INSTALL%\IMPORT32.LIB=28
%C_LIB_INSTALL%\uuid.lib=29
%C_LIB_INSTALL%\psdk\msimg32.lib=30
%C_LIB_INSTALL%\psdk\psapi.lib=31

[DLL Files]
%HB_LIB_INSTALL%\harbour.lib=1
%C_LIB_INSTALL%\C0W32.OBJ=2
%C_LIB_INSTALL%\CW32.LIB=3
%C_LIB_INSTALL%\IMPORT32.LIB=4
Salu2

Carlos Vargas

Desde Managua, Nicaragua (CA)
Posts: 2706
Joined: Fri Oct 07, 2005 01:50 PM
Re: Compile Error Borland FWH 1201
Posted: Thu Feb 02, 2012 11:04 PM

Carlos

Thank you for pointing out c0w32.lib .. I had it in the link list from my old environment but specifically deleted it when I looked at Buildx.bat and did not see it in the list. Looking again, you are correct .. I just missed it since it was the first lib even before the FHW libs.

Is there any significance to loading c0w32.lib first .. I have tried it first and lower down in the Borland stack without any problems ?

Thanks
Rick

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Compile Error Borland FWH 1201
Posted: Thu Feb 02, 2012 11:39 PM

Rick,

Those Borland modules need to be linked first as they contain code related to the EXE startup

In FWH\samples\buildx.bat you have the right link order

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1789
Joined: Tue Oct 11, 2005 05:01 PM
Re: Compile Error Borland FWH 1201
Posted: Fri Feb 03, 2012 02:59 PM
%C_LIB_INSTALL%\C0W32.OBJ=1

its OBJ not LIB

is the first file.

i think is PE Code (EXE STUB START CODE)

repeat, i think. :-)

salud
Salu2

Carlos Vargas

Desde Managua, Nicaragua (CA)
Posts: 2706
Joined: Fri Oct 07, 2005 01:50 PM
Re: Compile Error Borland FWH 1201
Posted: Fri Feb 03, 2012 10:51 PM

Carlos

Been one of those days .. YES, you are correct .. I did load the correct file..( .obj ) bummed out here .. Yesterday was Groundhog day in the States .. Groundhog saw his shadow .. six more weeks of cold winter weather :(

Rick

Continue the discussion