Error compiling with bcc7 and fwh 15.12

Error compiling with bcc7 and fwh 15.12

Postby Silvio.Falconi » Thu Jan 14, 2016 11:04 am

Someone can help me please ?


sample test.prg
Code: Select all  Expand view

#include "FiveWin.ch"

 static nInitial1, nInitial2 , nInitial3
 STATIC aOImages
 STATIC magicNum
 STatic nHeightImg

//----------------------------------------------------------------------------//

function Main()

   local oWnd
   local obmp1, obmp2, oBmp3
   local ofont
   local osay


     DEFINE FONT ofont NAME "arial" SIZE 0,-80 BOLD

   DEFINE WINDOW oWnd

   @ 20,12 button "lauch" size 40,20 pixel Action NIL

   @ 6,72 BITMAP oBmp1 File "" size 100, 240 pixel

   @ 6,182 BITMAP oBmp2 File "" size 100, 240 pixel

   @ 6,292 BITMAP oBmp3 File "" size 100, 240 pixel

   @ 20, 70 SAY osay PROMPT "PREMIO" OF oWnd FONT Ofont pixel
   osay:hide()

   ACTIVATE WINDOW oWnd
   

return nil



Errors
Code: Select all  Expand view

Progetto: roller, Ambiente: xFivePelles7:
[1]:Harbour.Exe roller.prg  /m /n0 /gc1 /es2 /iC:\WORK\fwh\include /ic:\work\xHarbour\Include /jC:\WORK\Prg\ORIG_M~1\I18n\Main.hil /iinclude;c:\work\fwh\include;c:\work\xHarbour\include /oObj\roller.c
xHarbour 1.2.3 Intl. (SimpLex) (Build 20150603)
Copyright 1999-2015, http://www.xharbour.org http://www.harbour-project.org/
Compiling 'roller.prg'...
Generating international list to 'C:\WORK\Prg\ORIG_M~1\I18n\Main.hil'...
Generating C source output to 'Obj\roller.c'...
Done.
Lines 41, Functions/Procedures 1, pCodes 246
[1]:Bcc32.Exe -M -c -O2  -tW -v- -X -DHB_FM_STATISTICS_OFF -DHB_NO_DEFAULT_API_MACROS -DHB_NO_DEFAULT_STACK_MACROS -DHB_OS_WIN_32 -IC:\WORK\fwh\include -IC:\Work\bcc7\Include;c:\work\xHarbour\Include  -nC:\WORK\Prg\ORIG_M~1\Obj roller.c
Embarcadero C++ 7.00 for Win32 Copyright (c) 1993-2015 Embarcadero Technologies, Inc.
Warning W8123: Path 'c:\bcc7\include' not found - path ignored in option '-I'
Warning W8123: Path 'c:\bcc7\include\windows\crtl' not found - path ignored in option '-I'
Warning W8123: Path 'c:\bcc7\include\dinkumware' not found - path ignored in option '-I'
Warning W8123: Path 'c:\bcc7\include\windows\rtl' not found - path ignored in option '-I'
Warning W8123: Path 'c:\bcc7\include\windows\sdk' not found - path ignored in option '-I'
Warning W8123: Path 'c:\bcc7\include\windows\sdk\atl' not found - path ignored in option '-I'
Warning W8123: Path 'c:\bcc7\lib' not found - path ignored in option '-L'
Warning W8123: Path 'c:\bcc7\lib\psdk' not found - path ignored in option '-L'
roller.c:
Error E2209 c:\work\xHarbour\Include\hbvmpub.h 65: Unable to open include file 'assert.h'
Error E2209 c:\work\xHarbour\Include\hbdefs.h 56: Unable to open include file 'stdarg.h'
Error E2209 c:\work\xHarbour\Include\hbdefs.h 57: Unable to open include file 'stdio.h'
Error E2209 c:\work\xHarbour\Include\hbdefs.h 58: Unable to open include file 'stdlib.h'
Error E2209 c:\work\xHarbour\Include\hbdefs.h 59: Unable to open include file 'string.h'
Error E2209 c:\work\xHarbour\Include\hbsetup.h 67: Unable to open include file 'limits.h'
Error E2209 c:\work\xHarbour\Include\hbdefs.h 89: Unable to open include file 'stdint.h'
Warning W8017 c:\work\xHarbour\Include\hbdefs.h 587: Redefinition of 'HB_LONG_LENGTH' is not identical
Error E2257 c:\work\xHarbour\Include\hbdefs.h 618: , expected
Error E2141 c:\work\xHarbour\Include\hbwince.h 183: Declaration syntax error
Error E2293 c:\work\xHarbour\Include\hbwince.h 184: ) expected
Error E2141 c:\work\xHarbour\Include\hbwince.h 185: Declaration syntax error
Error E2293 c:\work\xHarbour\Include\hbwince.h 186: ) expected
Error E2147 c:\work\xHarbour\Include\hbwince.h 187: 'wchar_t' cannot start a parameter declaration
Error E2147 c:\work\xHarbour\Include\hbwince.h 188: 'wchar_t' cannot start a parameter declaration
Error E2293 c:\work\xHarbour\Include\hbwince.h 189: ) expected
Error E2139 c:\work\xHarbour\Include\hbvmpub.h 288: Declaration missing ;
Error E2141 c:\work\xHarbour\Include\hbapiitm.h 170: Declaration syntax error
Error E2141 c:\work\xHarbour\Include\hbapi.h 639: Declaration syntax error
Error E2303 c:\work\xHarbour\Include\hbapi.h 706: Type name expected
Error E2303 c:\work\xHarbour\Include\hbapi.h 707: Type name expected
Error E2303 c:\work\xHarbour\Include\hbapi.h 1030: Type name expected
Error E2451 roller.c 35: Undefined symbol 'NULL'
Error E2141 roller.c 35: Declaration syntax error
Error E2190 roller.c 35: Unexpected }
Error E2040 roller.c 35: Declaration terminated incorrectly
Error E2190 roller.c 57: Unexpected }
Error E2109 roller.c 57: Not an allowed type in function hb_vm_SymbolInit_ROLLER
*** 27 errors in Compile ***
 



I use Xmate and I tried with this Env

xfivewin7.env

Code: Select all  Expand view

[Environment]
Description 1=
Description 2=
Description 3=
PRG Compiler ver=
C compiler ver=
Subsystem=
Author=Falconi Silvio
Last update=13/01/2016

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

[Harbour]
HB_INSTALL=c:\work\xHarbour
HB_COMMAND=%HB_BIN_INSTALL%\Harbour.Exe %PRG% /m /n0 /gc1 /es2 /i%HB_INC_INSTALL% /j%HOME%\I18n\Main.hil /iinclude;c:\work\fwh\include;%HB_INSTALL%\include
Option prefix=/

[C]
C_INSTALL=C:\Work\bcc7
C_COMP_COMMAND=%C_BIN_INSTALL%\Bcc32.Exe -M -c -O2  -tW -v- -X %CRLF%-DHB_FM_STATISTICS_OFF %CRLF%-DHB_NO_DEFAULT_API_MACROS %CRLF%-DHB_NO_DEFAULT_STACK_MACROS %CRLF%-DHB_OS_WIN_32 %CRLF%-I%C_INC_INSTALL%;%HB_INC_INSTALL%  -n%HOME%\Obj %C%%CRLF%
C_LIB_COMMAND=%C_BIN_INSTALL%\TLib.Exe %LIB% /P512 @%RSP% , %LST%
C_LINK_COMMAND=%C_BIN_INSTALL%\iLink32.Exe -Gn -aa -Tpe -s @%LNK%
C_RC_COMMAND=c:\work\PellesC\Bin\PORC.EXE  %RC%  /I c:\work\pellesc\include /I c:\work\pellesc\include\win
C_DLL_COMMAND=%C_BIN_INSTALL%\iLink32.Exe -Gn -aa -Tpd -M -L%C_LIB_INSTALL% @%LNK%
Option prefix=-

[User]
POSTEXE_COMMAND=
POSTLIB_COMMAND=
POSTDLL_COMMAND=

[Files]
%C_LIB_INSTALL%\C0W32.OBJ=1
C:\Work\FWH\LIB\fivehx.lib=2
C:\Work\FWH\LIB\Fivehc.lib=3
%HB_LIB_INSTALL%\rtl.lib=4
%HB_LIB_INSTALL%\vm.lib=5
%HB_LIB_INSTALL%\gtcgi.lib=6
%HB_LIB_INSTALL%\gtgui.lib=7
%HB_LIB_INSTALL%\gtstd.lib=8
%HB_LIB_INSTALL%\gtwin.lib=9
%HB_LIB_INSTALL%\gtwvt.lib=10
%HB_LIB_INSTALL%\lang.lib=11
%HB_LIB_INSTALL%\macro.lib=12
%HB_LIB_INSTALL%\rdd.lib=13
%HB_LIB_INSTALL%\dbfcdx.lib=14
%HB_LIB_INSTALL%\dbffpt.lib=15
%HB_LIB_INSTALL%\dbfntx.lib=16
%HB_LIB_INSTALL%\hbsix.lib=17
%HB_LIB_INSTALL%\debug.lib=18
%HB_LIB_INSTALL%\common.lib=19
%HB_LIB_INSTALL%\pp.lib=20
%HB_LIB_INSTALL%\pcrepos.lib=21
%HB_LIB_INSTALL%\ct.lib=22
%HB_LIB_INSTALL%\zlib.lib=23
%HB_LIB_INSTALL%\hbzip.lib=24
%HB_LIB_INSTALL%\png.lib=25
%HB_LIB_INSTALL%\codepage.lib=26
%C_LIB_INSTALL%\CW32.LIB=27
%C_LIB_INSTALL%\IMPORT32.LIB=28
%C_LIB_INSTALL%\uuid.lib=29
%C_LIB_INSTALL%\PSDK\odbc32.lib=30
%C_LIB_INSTALL%\PSDK\rasapi32.lib=31
%C_LIB_INSTALL%\PSDK\msimg32.lib=32
%C_LIB_INSTALL%\PSDK\psapi.lib=33
%C_LIB_INSTALL%\PSDK\GdiPlus.lib=34
%C_LIB_INSTALL%\PSDK\iphlpapi.lib=35
%C_LIB_INSTALL%\PSDK\nddeapi.lib=36
%C_LIB_INSTALL%\PSDK\shell32.lib=37

[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
 
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 7048
Joined: Thu Oct 18, 2012 7:17 pm

Re: Error compiling with bcc7 and fwh 15.12

Postby ukoenig » Thu Jan 14, 2016 12:49 pm

Silvio,

can You try the makefile I posted ?

viewtopic.php?f=3&t=31801&p=185738#p185738

best regards
Uwe :?:
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: Error compiling with bcc7 and fwh 15.12

Postby karinha » Thu Jan 14, 2016 12:51 pm

Normal,

Image
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
User avatar
karinha
 
Posts: 7804
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil

Re: Error compiling with bcc7 and fwh 15.12

Postby Rick Lipkin » Thu Jan 14, 2016 12:54 pm

Silvo .. here is my xMate .env for bcc7\xHarbor for fwh 1504 :
Code: Select all  Expand view


[Environment]
Description 1=Updated for FWH 1504
Description 2=
Description 3=
PRG Compiler ver=xHarbour
C compiler ver=Bcc70
Subsystem=FWH1504
Author=Richard Lipkin
Last update=07/28/2015

[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%
Option prefix=/

[C]
C_INSTALL=C:\Borland\bcc70
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_LIB_INSTALL%\c0w32.obj=1
C:\FWH1504\LIB\Fivehx.lib=2
C:\FWH1504\LIB\Fivehc.lib=3
%HB_LIB_INSTALL%\rtl.lib=4
%HB_LIB_INSTALL%\vm.lib=5
%HB_LIB_INSTALL%\gtgui.lib=6
%HB_LIB_INSTALL%\lang.lib=7
%HB_LIB_INSTALL%\macro.lib=8
%HB_LIB_INSTALL%\rdd.lib=9
%HB_LIB_INSTALL%\dbfntx.lib=10
%HB_LIB_INSTALL%\dbfcdx.lib=11
%HB_LIB_INSTALL%\dbffpt.lib=12
%HB_LIB_INSTALL%\hbsix.lib=13
%HB_LIB_INSTALL%\debug.lib=14
%HB_LIB_INSTALL%\common.lib=15
%HB_LIB_INSTALL%\pp.lib=16
%HB_LIB_INSTALL%\pcrepos.lib=17
%HB_LIB_INSTALL%\ct.lib=18
%HB_LIB_INSTALL%\zlib.lib=19
%HB_LIB_INSTALL%\hbzip.lib=20
%HB_LIB_INSTALL%\libmisc.lib=21
%HB_LIB_INSTALL%\tip.lib=22
%HB_LIB_INSTALL%\png.lib=23
%C_LIB_INSTALL%\cw32.lib=24
%C_LIB_INSTALL%\IMPORT32.LIB=25
%C_LIB_INSTALL%\uuid.lib=26
%C_LIB_INSTALL%\ws2_32.lib=27
%C_LIB_INSTALL%\PSDK\odbc32.lib=28
%C_LIB_INSTALL%\PSDK\rassapi.lib=29
%C_LIB_INSTALL%\PSDK\nddeapi.lib=30
%C_LIB_INSTALL%\PSDK\msimg32.lib=31
%C_LIB_INSTALL%\PSDK\psapi.lib=32
%C_LIB_INSTALL%\PSDK\GdiPlus.lib=33
%C_LIB_INSTALL%\PSDK\iphlpapi.lib=34
%C_LIB_INSTALL%\PSDK\shell32.lib=35

[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
 

Bcc32.cfg located in the bcc70 \Bin folder
Code: Select all  Expand view

-I"C:\Borland\Bcc70\include\windows\crtl"
-L"C:\Borland\BCC70\lib;C:\Borland\BCC70\lib\psdk"
-lj"C:\Borland\BCC70\lib;C:\Borland\BCC70\lib\psdk"
 

iLink32.cfg located in the Bcc70\Bin folder
Code: Select all  Expand view

-L"C:\Borland\BCC70\lib;C:\Borland\BCC70\lib\psdk"
 


Rick Lipkin
User avatar
Rick Lipkin
 
Posts: 2665
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA

Re: Error compiling with bcc7 and fwh 15.12

Postby Silvio.Falconi » Thu Jan 14, 2016 4:40 pm

thanks Lipkin,
yesterday I purchased the new fwh far from many years...
it seems now run ok
Now I must recompiler my apps

only I found a warning compiling adir.prg

Progetto: adir, Ambiente: bcc7xHarbor:
[1]:Harbour.Exe adir.prg /m /n /gc0 /es2 /a /iC:\WORK\fwh\include /iC:\work\XHARBOUR\Include /oObj\adir.c
xHarbour 1.2.3 Intl. (SimpLex) (Build 20150603)
Copyright 1999-2015, http://www.xharbour.org http://www.harbour-project.org/
Compiling 'adir.prg'...
Generating C source output to 'Obj\adir.c'...
Done.
Lines 39, Functions/Procedures 1, pCodes 246
[1]:Bcc32.Exe -M -c -v -DHB_OS_WIN_32 -IC:\WORK\fwh\include -IC:\work\bcc7\Include;C:\work\XHARBOUR\Include -nC:\WORK\Errori\TEST_A~1\Obj adir.c
Embarcadero C++ 7.00 for Win32 Copyright (c) 1993-2015 Embarcadero Technologies, Inc.
Warning W8123: Path 'C:\Work\BCC70\lib\psdk' not found - path ignored in option '-L'
adir.c:
[1]:iLink32.Exe -Gn -aa -Tpe -s -v @adir.bcl
Turbo Incremental Link 6.70 Copyright (c) 1997-2014 Embarcadero Technologies, Inc.
Sto caricando C:\WORK\Errori\test_adir\adir.Exe
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 7048
Joined: Thu Oct 18, 2012 7:17 pm

Re: Error compiling with bcc7 and fwh 15.12

Postby Silvio.Falconi » Thu Jan 14, 2016 5:13 pm

sorry my error now it is ok
only I have problem to compiling oldest classes


TSLINES


Code: Select all  Expand view
Progetto: Tslines, Ambiente: bcc7xHarbor:
[1]:Harbour.Exe SOURCE\CLASSES\TSLINES.PRG  /m /n /gc0 /es2 /a /iC:\Work\FWH\include /iC:\work\XHARBOUR\Include /d__HARBOUR__ /dHB_API_MACROS /dHB_FM_STATISTICS_OFF /oObj\TSLINES.c
xHarbour 1.2.3 Intl. (SimpLex) (Build 20150603)
Copyright 1999-2015, http://www.xharbour.org http://www.harbour-project.org/
Compiling 'SOURCE\CLASSES\TSLINES.PRG'...
Generating C source output to 'Obj\TSLINES.c'...
Done.
Lines 262, Functions/Procedures 6, pCodes 1275
[1]:Bcc32.Exe -M -c -v -D__HARBOUR__ -DHB_API_MACROS -DHB_FM_STATISTICS_OFF -DHB_OS_WIN_32 -IC:\Work\FWH\include -IC:\work\bcc7\Include;C:\work\XHARBOUR\Include  -nObj Obj\TSLINES.c
Embarcadero C++ 7.00 for Win32 Copyright (c) 1993-2015 Embarcadero Technologies, Inc.
Obj\TSLINES.c:
Error E2209 C:\work\XHARBOUR\Include\hbstack.h 73: Unable to open include file 'windows.h'
*** 1 errors in Compile ***
 
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 7048
Joined: Thu Oct 18, 2012 7:17 pm

Re: Error compiling with bcc7 and fwh 15.12

Postby Silvio.Falconi » Thu Jan 14, 2016 5:19 pm

I have

#pragma BEGINDUMP
#include "Windows.h" <-------
#include "hbapi.h"
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 7048
Joined: Thu Oct 18, 2012 7:17 pm

Re: Error compiling with bcc7 and fwh 15.12

Postby Antonio Linares » Thu Jan 14, 2016 8:29 pm

regards, saludos

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


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 76 guests