FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Errors (dumb I should think) with FW 16.06
Posts: 723
Joined: Tue Sep 04, 2007 08:45 AM
Errors (dumb I should think) with FW 16.06
Posted: Fri Aug 26, 2016 05:59 AM
Compiling a program with Harbour320_160105_0904 I'm getting the following errors:
Code (fw): Select all Collapse
Error E2109 gustavo.c 129: Not an allowed type in function hb_vm_SymbolInit_GUSTAVO
Error E2209 gustavo.prg 228: Unable to open include file 'windows.h'
Error E2141 e:\comp\HarbourB\Harbour320\include\hbapi.h 830: Declaration syntax error
Error E2303 e:\comp\HarbourB\Harbour320\include\hbapi.h 957: Type name expected
Error E2303 e:\comp\HarbourB\Harbour320\include\hbapi.h 958: Type name expected
Error E2147 e:\comp\HarbourB\Harbour320\include\hbapi.h 1000: 'HB_I32' cannot start a parameter declaration
Error E2141 e:\comp\HarbourB\Harbour320\include\hbapi.h 1225: Declaration syntax error
Error E2141 e:\comp\HarbourB\Harbour320\include\hbapi.h 1226: Declaration syntax error
Error E2293 e:\comp\HarbourB\Harbour320\include\hbapi.h 1227: ) expected
Error E2293 e:\comp\HarbourB\Harbour320\include\hbapi.h 1228: ) expected
Error E2451 gustavo.prg 233: Undefined symbol 'HWND' in function HB_FUN_SHOWSCROLLBAR
Error E2121 gustavo.prg 233: Function call missing ) in function HB_FUN_SHOWSCROLLBAR
*** 25 errors in Compile ***
Borland Resource Compiler  Version 5.40
Copyright (c) 1990, 1999 Inprise Corporation.  All rights reserved.
Turbo Incremental Link 6.70 Copyright (c) 1997-2014 Embarcadero Technologies, In
c.
Fatal: Too many DEF file names: e:\comp\fwh\lib\FiveHC.lib
* Linking errors *


I'd check the directory structure and environment variables (xhdir, fwdir, etc.) and they seems OK.

Any clues ?
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Errors (dumb I should think) with FW 16.06
Posted: Fri Aug 26, 2016 08:00 AM

Where is your borland compiler installed ?

It seems as windows.h is not found:

Unable to open include file 'windows.h'

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 723
Joined: Tue Sep 04, 2007 08:45 AM
Re: Errors (dumb I should think) with FW 16.06
Posted: Fri Aug 26, 2016 08:16 AM

Antonio:

Here is the Borland Compiler:
C:\Borland\BCC7
Fivewin:
FWDIR=c:\fwh
Harbour
XHDIR=c:\HarbourB\Harbour320

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Errors (dumb I should think) with FW 16.06
Posted: Fri Aug 26, 2016 10:21 PM

Gustavo,

Please modify your bcc32.cfg and ilink32.cfg files at C:\Borland\BCC7\bin to use the right paths

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 723
Joined: Tue Sep 04, 2007 08:45 AM
Re: Errors (dumb I should think) with FW 16.06
Posted: Sat Aug 27, 2016 09:19 AM
Antonio:

A HUGE improvement !!!! Just one last warning message:
Code (fw): Select all Collapse
Compiling 'gustavo.prg' and generating preprocessed output to 'gustavo.ppo'...
Generating C source output to 'gustavo.c'...
Done.
Lines 224, Functions/Procedures 9, pCodes 1079
Embarcadero C++ 7.00 for Win32 Copyright (c) 1993-2015 Embarcadero Technologies, Inc.
gustavo.c:
Borland Resource Compiler  Version 5.40
Copyright (c) 1990, 1999 Inprise Corporation.  All rights reserved.
Turbo Incremental Link 6.70 Copyright (c) 1997-2014 Embarcadero Technologies, Inc.
Fatal: Too many DEF file names: c:\fwh\lib\FiveHC.lib
* Linking errors *


Thank you my friend !
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Errors (dumb I should think) with FW 16.06
Posted: Sat Aug 27, 2016 09:31 AM

Gustavo,

Please copy here the line where you call ilink32.exe

You may have an extra or missing ","

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 723
Joined: Tue Sep 04, 2007 08:45 AM
Re: Errors (dumb I should think) with FW 16.06
Posted: Sun Aug 28, 2016 08:47 PM
Antonio:

Here's the block from the batch file:
Code (fw): Select all Collapse
rem uncomment this line to use the debugger and comment the following one
if %GT% == gtwin %bcdir%\bin\ilink32 -Gn -Tpe -s -v @b32.bc   (I'd commented this line  but results are the same)
IF ERRORLEVEL 1 GOTO LINKERROR
if %GT% == gtgui %bcdir%\bin\ilink32 -Gn -aa -Tpe -s -v @b32.bc
IF ERRORLEVEL 1 GOTO LINKERROR
ECHO * Application successfully built *
%1
GOTO EXIT
ECHO


Thank you very much !
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Errors (dumb I should think) with FW 16.06
Posted: Sun Aug 28, 2016 10:12 PM

Gustavo,

Please post here the contents of the file b32.bc

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 723
Joined: Tue Sep 04, 2007 08:45 AM
Re: Errors (dumb I should think) with FW 16.06
Posted: Mon Aug 29, 2016 02:01 AM
Code (fw): Select all Collapse
c:\Borland\bcc7\lib\c0w32.obj + 
SIGNATURE.obj, + 
errsysw.obj, + 
SIGNATURE.exe, + 
SIGNATURE.map, + 
c:\fwh\lib\Fivehx.lib c:\fwh\lib\FiveHC.lib c:\fwh\lib\libmysql.lib + 
c:\HarbourB\Harbour320\lib\rtl.lib + 
c:\HarbourB\Harbour320\lib\vm.lib + 
c:\HarbourB\Harbour320\lib\gtgui.lib + 
c:\HarbourB\Harbour320\lib\lang.lib + 
c:\HarbourB\Harbour320\lib\macro.lib + 
c:\HarbourB\Harbour320\lib\rdd.lib + 
c:\HarbourB\Harbour320\lib\dbfntx.lib + 
c:\HarbourB\Harbour320\lib\dbfcdx.lib + 
c:\HarbourB\Harbour320\lib\dbffpt.lib + 
c:\HarbourB\Harbour320\lib\hbsix.lib + 
c:\HarbourB\Harbour320\lib\debug.lib + 
c:\HarbourB\Harbour320\lib\common.lib + 
c:\HarbourB\Harbour320\lib\codepage.lib + 
c:\HarbourB\Harbour320\lib\pp.lib + 
c:\HarbourB\Harbour320\lib\pcrepos.lib + 
c:\HarbourB\Harbour320\lib\ct.lib + 
c:\HarbourB\Harbour320\lib\zlib.lib + 
c:\HarbourB\Harbour320\lib\hbzip.lib + 
c:\HarbourB\Harbour320\lib\libmisc.lib + 
c:\HarbourB\Harbour320\lib\tip.lib + 
c:\HarbourB\Harbour320\lib\png.lib + 
c:\Borland\bcc7\lib\cw32.lib + 
c:\Borland\bcc7\lib\import32.lib + 
c:\Borland\bcc7\lib\uuid.lib + 
c:\Borland\bcc7\lib\ws2_32.lib + 
c:\Borland\bcc7\lib\psdk\odbc32.lib + 
c:\Borland\bcc7\lib\psdk\rasapi32.lib + 
c:\Borland\bcc7\lib\psdk\nddeapi.lib + 
c:\Borland\bcc7\lib\psdk\msimg32.lib + 
c:\Borland\bcc7\lib\psdk\psapi.lib + 
c:\Borland\bcc7\lib\psdk\gdiplus.lib + 
c:\Borland\bcc7\lib\psdk\iphlpapi.lib + 
c:\Borland\bcc7\lib\psdk\shell32.lib,
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Errors (dumb I should think) with FW 16.06
Posted: Mon Aug 29, 2016 07:13 AM
Gustavo,

Please remove this ","

SIGNATURE.obj, +

it has to be:

SIGNATURE.obj +
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 723
Joined: Tue Sep 04, 2007 08:45 AM
Re: Errors (dumb I should think) with FW 16.06
Posted: Mon Aug 29, 2016 07:42 AM

Antonio:

The batch file is complaining (file not found) about the RTL.LIB. Is this library necessary ? Thank you very much !

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Errors (dumb I should think) with FW 16.06
Posted: Mon Aug 29, 2016 08:11 AM

Gustavo,

The Harbour libs names that you are using are not correct.

Please review samples\buildh.bat for the right libs filenames to use

i.e. instead of rtl.lib, you have to use hbrtl.lib

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 723
Joined: Tue Sep 04, 2007 08:45 AM
Re: Errors (dumb I should think) with FW 16.06
Posted: Mon Aug 29, 2016 09:43 AM
Antonio:

I had a BIG mess up with my libraries. I was mixing all LIBs from my xHarbour times. Now fixed based on buildh.bat.
The only issue that I'm getting is the following link error:
Code (fw): Select all Collapse
Error: Unresolved external '_HB_FUN_CURDRIVE' referenced from C:\PROG\TWOIMG\GUSTAVO.OBJ
Error: Unable to perform link
* Linking errors *


I had double checked and can't find the missing lib. Can you point me in the right direction ? Thank you very much.
Posts: 8515
Joined: Tue Dec 20, 2005 07:36 PM
Re: Errors (dumb I should think) with FW 16.06
Posted: Mon Aug 29, 2016 01:55 PM
Code (fw): Select all Collapse
C:\FWHX...\lib\FiveHX.Lib            +
C:\FWHX...\lib\FiveHC.Lib            +
C:\XHB....\lib\hbzip.Lib             +
C:\XHB....\lib\zlib.Lib              +
C:\XHB....\lib\rtl.Lib               +
C:\XHB....\lib\vm.Lib                +
C:\XHB....\lib\gtgui.Lib             +
C:\XHB....\lib\lang.Lib              +
C:\XHB....\lib\macro.Lib             +
C:\XHB....\lib\rdd.Lib               +
C:\XHB....\lib\dbfntx.Lib            +
C:\XHB....\lib\dbfcdx.Lib            +
C:\XHB....\lib\debug.Lib             +
C:\XHB....\lib\common.Lib            +
C:\XHB....\lib\tip.Lib               +
C:\XHB....\lib\pp.Lib                +
C:\XHB....\lib\dbffpt.Lib            +
C:\XHB....\lib\codepage.Lib          +
C:\XHB....\lib\HbSix.Lib             +
C:\XHB....\lib\PcRepos.Lib           +
C:\XHB....\Lib\ct.Lib                +
C:\XHB....\Lib\png.Lib               +
C:\BCC7\lib\cw32.Lib                 +
c:\BCC7\lib\uuid.lib                 +
c:\BCC7\lib\ws2_32.lib               +
C:\BCC7\lib\psdk\msimg32.Lib         +
C:\BCC7\lib\psdk\odbc32.Lib          +
C:\BCC7\lib\psdk\rasapi32.Lib        +
C:\BCC7\lib\psdk\nddeapi.Lib         +
C:\BCC7\lib\psdk\psapi.Lib           +
c:\BCC7\lib\psdk\gdiplus.lib         +
C:\BCC7\lib\psdk\iphlpapi.Lib        +
c:\BCC7\lib\psdk\shell32.lib         +
C:\BCC7\lib\import32.Lib


João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Errors (dumb I should think) with FW 16.06
Posted: Mon Aug 29, 2016 06:00 PM

Gustavo,

Please replace CURDRIVE() with hb_CURDRIVE()

regards, saludos

Antonio Linares
www.fivetechsoft.com