Errors (dumb I should think) with FW 16.06

Errors (dumb I should think) with FW 16.06

Postby HunterEC » Fri Aug 26, 2016 5:59 am

Compiling a program with Harbour320_160105_0904 I'm getting the following errors:
Code: Select all  Expand view
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 ?
HunterEC
 
Posts: 723
Joined: Tue Sep 04, 2007 8:45 am

Re: Errors (dumb I should think) with FW 16.06

Postby Antonio Linares » Fri Aug 26, 2016 8: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42093
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Errors (dumb I should think) with FW 16.06

Postby HunterEC » Fri Aug 26, 2016 8:16 am

Antonio:

Here is the Borland Compiler:
C:\Borland\BCC7
Fivewin:
FWDIR=c:\fwh
Harbour
XHDIR=c:\HarbourB\Harbour320
HunterEC
 
Posts: 723
Joined: Tue Sep 04, 2007 8:45 am

Re: Errors (dumb I should think) with FW 16.06

Postby Antonio Linares » 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
User avatar
Antonio Linares
Site Admin
 
Posts: 42093
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Errors (dumb I should think) with FW 16.06

Postby HunterEC » Sat Aug 27, 2016 9:19 am

Antonio:

A HUGE improvement !!!! Just one last warning message:
Code: Select all  Expand view
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 !
HunterEC
 
Posts: 723
Joined: Tue Sep 04, 2007 8:45 am

Re: Errors (dumb I should think) with FW 16.06

Postby Antonio Linares » Sat Aug 27, 2016 9: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42093
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Errors (dumb I should think) with FW 16.06

Postby HunterEC » Sun Aug 28, 2016 8:47 pm

Antonio:

Here's the block from the batch file:
Code: Select all  Expand view
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 !
HunterEC
 
Posts: 723
Joined: Tue Sep 04, 2007 8:45 am

Re: Errors (dumb I should think) with FW 16.06

Postby Antonio Linares » 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
User avatar
Antonio Linares
Site Admin
 
Posts: 42093
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Errors (dumb I should think) with FW 16.06

Postby HunterEC » Mon Aug 29, 2016 2:01 am

Code: Select all  Expand view
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,
 
HunterEC
 
Posts: 723
Joined: Tue Sep 04, 2007 8:45 am

Re: Errors (dumb I should think) with FW 16.06

Postby Antonio Linares » Mon Aug 29, 2016 7:13 am

Gustavo,

Please remove this ","

SIGNATURE.obj, +

it has to be:

SIGNATURE.obj +
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42093
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Errors (dumb I should think) with FW 16.06

Postby HunterEC » Mon Aug 29, 2016 7:42 am

Antonio:

The batch file is complaining (file not found) about the RTL.LIB. Is this library necessary ? Thank you very much !
HunterEC
 
Posts: 723
Joined: Tue Sep 04, 2007 8:45 am

Re: Errors (dumb I should think) with FW 16.06

Postby Antonio Linares » Mon Aug 29, 2016 8: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42093
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Errors (dumb I should think) with FW 16.06

Postby HunterEC » Mon Aug 29, 2016 9: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: Select all  Expand view
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.
HunterEC
 
Posts: 723
Joined: Tue Sep 04, 2007 8:45 am

Re: Errors (dumb I should think) with FW 16.06

Postby karinha » Mon Aug 29, 2016 1:55 pm

Code: Select all  Expand view

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
User avatar
karinha
 
Posts: 7814
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil

Re: Errors (dumb I should think) with FW 16.06

Postby Antonio Linares » Mon Aug 29, 2016 6:00 pm

Gustavo,

Please replace CURDRIVE() with hb_CURDRIVE()
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42093
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Next

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 97 guests