thanks Enrico,
if I understood correctly, analyzing buidh.bat I saw that the -O2 flag is used for Borland, do you confirm this too?
I inserted the flag in hbmk2 and now it works.
Regards Maurizo
@ ECHO OFF
SET BCC=e:\fw\temp\bcc32\bcc
SET HRB=e:\fw\temp\bcc32\harbour
SET HARBOURCMD=-a -es2 -gc0 -n -q -w3
%HRB%\bin\harbour -i%HRB%\include %1
%BCC%\bin\bcc32 -I%HRB%\include %1.c
[Environment]
Description 1=For Borland 7HARBOUR
Description 2=
Description 3=
PRG Compiler ver=Harbour
C compiler ver=Bcc7
Subsystem=FWH0217
Author=Falconi Silvio
Last update=06/03/2024
[Advanced]
Command types=1,1,1,1,1,1,1,1,1
[Harbour]
HB_INSTALL=C:\Work\harbour
HB_COMMAND=%HB_BIN_INSTALL%\Harbour.Exe %PRG% /m /n0 /gc1 /es2 /a /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 %CRLF%-DHB_OS_WIN_32 %CRLF%-DHB_FM_STATISTICS_OFF %CRLF%-DHB_NO_DEFAULT_API_MACROS %CRLF%-DHB_NO_DEFAULT_STACK_MACROS %CRLF%-I%C_INC_INSTALL%\windows\sdk\;%HB_INC_INSTALL% -n%HOME%\Obj %C%%CRLF%%CRLF%%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 -v @%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_LIB_INSTALL%\CW32.LIB=2
C:\Work\FWH\lib\Fiveh.lib=3
C:\Work\FWH\lib\Fivehc.lib=4
%HB_LIB_INSTALL%\win\bcc\hbrtl.lib=5
%HB_LIB_INSTALL%\win\bcc\hbvm.lib=6
%HB_LIB_INSTALL%\win\bcc\hbgt.lib=7
%HB_LIB_INSTALL%\win\bcc\gtgui.lib=8
%HB_LIB_INSTALL%\win\bcc\hblang.lib=9
%HB_LIB_INSTALL%\win\bcc\hbmacro.lib=10
%HB_LIB_INSTALL%\win\bcc\hbcommon.lib=11
%HB_LIB_INSTALL%\win\bcc\hbpp.lib=12
%HB_LIB_INSTALL%\win\bcc\hbrdd.lib=13
%HB_LIB_INSTALL%\win\bcc\rddntx.lib=14
%HB_LIB_INSTALL%\win\bcc\rddcdx.lib=15
%HB_LIB_INSTALL%\win\bcc\rddfpt.lib=16
%HB_LIB_INSTALL%\win\bcc\hbwin.lib=17
%HB_LIB_INSTALL%\win\bcc\hbsix.lib=18
%HB_LIB_INSTALL%\win\bcc\hbziparc.lib=19
%HB_LIB_INSTALL%\win\bcc\hbcpage.lib=20
%HB_LIB_INSTALL%\win\bcc\hbcplr.lib=21
%HB_LIB_INSTALL%\win\bcc\hbmzip.lib=22
%HB_LIB_INSTALL%\win\bcc\minizip.lib=23
%HB_LIB_INSTALL%\win\bcc\xhb.lib=24
%HB_LIB_INSTALL%\win\bcc\hbct.lib=25
%HB_LIB_INSTALL%\win\bcc\hbzlib.lib=26
%HB_LIB_INSTALL%\win\bcc\hbpcre.lib=27
%C_LIB_INSTALL%\IMPORT32.LIB=28
%C_LIB_INSTALL%\psdk\UUID.lib=29
%C_LIB_INSTALL%\PSDK\odbc32.lib=30
%C_LIB_INSTALL%\PSDK\nddeapi.lib=31
%C_LIB_INSTALL%\PSDK\iphlpapi.lib=32
%C_LIB_INSTALL%\PSDK\msimg32.lib=33
%C_LIB_INSTALL%\PSDK\ws2_32.lib=34
%C_LIB_INSTALL%\PSDK\psapi.lib=35
%C_LIB_INSTALL%\PSDK\rasapi32.lib=36
%HB_LIB_INSTALL%\win\bcc\png.lib=37
%C_LIB_INSTALL%\PSDK\shell32.lib=38
%C_LIB_INSTALL%\psdk\Uxtheme.lib=39
[DLL Files]
%HB_LIB_INSTALL%\win\bcc\harbour.lib=1
%C_LIB_INSTALL%\C0W32.OBJ=2
%C_LIB_INSTALL%\CW32.LIB=3
%C_LIB_INSTALL%\IMPORT32.LIB=4
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: Willi Quintana and 39 guests