error Compiling fwh2206\samples\FiveDBU.prg

error Compiling fwh2206\samples\FiveDBU.prg

Postby Ari » Tue Aug 23, 2022 11:38 am

Hello

using buildx.bat

Ari


Code: Select all  Expand view

@ECHO OFF
CLS
ECHO ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿
ECHO ³ FiveWin for xHarbour 22.06 - Jun. 2022          Harbour development power  ³Ü
ECHO ³ (c) FiveTech 1993-2022 for Microsoft Windows 9X/NT/200X/ME/XP/Vista/7/8/10 ³Û
ECHO ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙÛ
ECHO ÿ ßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßß

if A%1 == A GOTO :SINTAX
if NOT EXIST %1.prg GOTO :NOEXIST

ECHO Compiling...

if "%FWDIR%" == "" set FWDIR=.\..\
if "%XHDIR%" == "" set XHDIR=c:\xharbour
rem if "%2" == "/b" set GT=gtwin
rem if not "%2" == "/b" set GT=gtgui
set GT=gtgui

set hdir=%XHDIR%
set hdirl=%hdir%\lib
set bcdir=c:\bcc58
set fwh=%FWDIR%

%hdir%\bin\harbour %1 /n /i%fwh%\include;%hdir%\include /w /p %2 %3 > comp.log 2> warnings.log
IF ERRORLEVEL 1 GOTO COMPILEERRORS
@type comp.log
@type warnings.log

echo -O2 -e%1.exe -I%hdir%\include -I%bcdir%\include %1.c > b32.bc
%bcdir%\bin\bcc32 -M -c -v @b32.bc
:ENDCOMPILE

IF EXIST %1.rc %bcdir%\bin\brc32.exe -r -I%bcdir%\include -I%bcdir%\include\windows\sdk %1

echo %bcdir%\lib\c0w32.obj + > b32.bc
echo %1.obj, + >> b32.bc
echo %1.exe, + >> b32.bc
echo %1.map, + >> b32.bc

echo %fwh%\lib\FiveHx.lib %fwh%\lib\FiveHC.lib %fwh%\lib\libmysql.lib + >> b32.bc
echo %fwh%\lib\pgsql.lib %fwh%\lib\libpq.lib + >> b32.bc

echo %hdirl%\hbhpdf.lib + >> b32.bc
echo %hdirl%\libharu.lib + >> b32.bc
echo %hdirl%\png.lib + >> b32.bc
echo %hdirl%\rtl.lib + >> b32.bc
echo %hdirl%\vm.lib + >> b32.bc
echo %hdirl%\%GT%.lib + >> b32.bc
echo %hdirl%\lang.lib + >> b32.bc
echo %hdirl%\macro.lib + >> b32.bc
echo %hdirl%\rdd.lib + >> b32.bc
echo %hdirl%\dbfntx.lib + >> b32.bc
echo %hdirl%\dbfcdx.lib + >> b32.bc
echo %hdirl%\dbffpt.lib + >> b32.bc
echo %hdirl%\hbsix.lib + >> b32.bc
echo %hdirl%\debug.lib + >> b32.bc
echo %hdirl%\common.lib + >> b32.bc
echo %hdirl%\codepage.lib + >> b32.bc
echo %hdirl%\pp.lib + >> b32.bc
echo %hdirl%\pcrepos.lib + >> b32.bc
echo %hdirl%\ct.lib + >> b32.bc
echo %hdirl%\zlib.lib + >> b32.bc
echo %hdirl%\hbzip.lib + >> b32.bc
echo %hdirl%\libmisc.lib + >> b32.bc
echo %hdirl%\tip.lib + >> b32.bc

rem Ari * comentei estas linhas

rem echo %hdirl%\hbzebra.lib + >> b32.bc
rem echo %hdirl%\png.lib + >> b32.bc

rem Uncomment these two lines to use Advantage RDD
rem echo %hdir%\lib\rddads.lib + >> b32.bc
rem echo %hdir%\lib\Ace32.lib + >> b32.bc

echo %bcdir%\lib\cw32.lib + >> b32.bc
echo %bcdir%\lib\import32.lib + >> b32.bc
echo %bcdir%\lib\uuid.lib + >> b32.bc
echo %bcdir%\lib\ws2_32.lib + >> b32.bc
echo %bcdir%\lib\psdk\odbc32.lib + >> b32.bc
echo %bcdir%\lib\psdk\rasapi32.lib + >> b32.bc
echo %bcdir%\lib\psdk\nddeapi.lib + >> b32.bc
echo %bcdir%\lib\psdk\msimg32.lib + >> b32.bc
echo %bcdir%\lib\psdk\psapi.lib + >> b32.bc
echo %bcdir%\lib\psdk\gdiplus.lib + >> b32.bc
echo %bcdir%\lib\psdk\iphlpapi.lib + >> b32.bc
echo %bcdir%\lib\psdk\shell32.lib, >> b32.bc

IF EXIST %1.res echo %1.res >> b32.bc

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
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

rem delete temporary files
@del %1.c

:COMPILEERRORS
@type comp.log
ECHO * Compile errors *
GOTO EXIT

:LINKERROR
ECHO * Linking errors *
GOTO EXIT

:SINTAX
ECHO    SYNTAX: Build [Program]     {-- No especifiques la extensi?n PRG
ECHO                                {-- Don't specify .PRG extension
GOTO EXIT

:NOEXIST
ECHO The specified PRG %1 does not exist

:EXIT




Code: Select all  Expand view

┌────────────────────────────────────────────────────────────────────────────┐
│ FiveWin for xHarbour 22.06 - Jun. 2022          Harbour development power  │▄
(c) FiveTech 1993-2022 for Microsoft Windows 9X/NT/200X/ME/XP/Vista/7/8/10 │█
└────────────────────────────────────────────────────────────────────────────┘█
  ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
Compiling...
xHarbour 1.2.3 Intl. (SimpLex) (Build 20201212)
Copyright 1999-2020, http://www.xharbour.org http://www.harbour-project.org/
Compiling 'fivedbu.prg' and generating preprocessed output to 'fivedbu.ppo'...
Generating C source output to 'fivedbu.c'...
Done.
Lines 3804, Functions/Procedures 83, pCodes 24651
fivedbu.prg(3228) Warning W0001  Ambiguous reference: '_SET_DBCODEPAGE'
fivedbu.prg(3803) Warning W0030  STATIC Function 'RSLOADRECORD' defined but never used
Borland C++ 5.82 for Win32 Copyright (c) 1993, 2005 Borland
fivedbu.c:
Borland Resource Compiler  Version 5.40
Copyright (c) 1990, 1999 Inprise Corporation.  All rights reserved.
Turbo Incremental Link 5.69 Copyright (c) 1997-2005 Borland
Error: Unresolved external '_HB_FUN_HB_THREADQUITREQUEST' referenced from C:\FWH2206\SAMPLES\FIVEDBU.OBJ
Error: Unresolved external '_HB_FUN_HB_THREADSTART' referenced from C:\FWH2206\SAMPLES\FIVEDBU.OBJ
Error: Unresolved external '_HB_FUN_HB_DEFAULT' referenced from C:\FWH2206\LIB\FIVEHX.LIB|WEBSERVER
Error: Unresolved external '_HB_FUN_HB_MTVM' referenced from C:\FWH2206\LIB\FIVEHX.LIB|WEBSERVER
Error: Unresolved external '_HB_FUN_HB_THREADDETACH' referenced from C:\FWH2206\LIB\FIVEHX.LIB|WEBSERVER
Error: Unresolved external '_HB_FUN_HB_MEMOREAD' referenced from C:\FWH2206\LIB\FIVEHX.LIB|WEBSERVER
Error: Unresolved external '_HB_FUN_HB_HGETDEF' referenced from C:\FWH2206\LIB\FIVEHX.LIB|WEBSERVER
Error: Unresolved external '_HB_FUN_HB_HSET' referenced from C:\FWH2206\LIB\FIVEHX.LIB|WEBSERVER
Error: Unresolved external '_HB_FUN_HB_VALTOEXP' referenced from C:\FWH2206\LIB\FIVEHX.LIB|WEBSERVER
Error: Unresolved external '_HB_FUN___CLSGETANCESTORS' referenced from C:\FWH2206\LIB\FIVEHX.LIB|WEBSERVER
* Linking errors *

c:\fwh2206\samples>
 
Thanks,
Ari

FWH 2212 - Harbour 3.2.0 - Embarcadero 7.43 - MySQL
São Paulo - SP - Brasil
www.sisrev.com.br
User avatar
Ari
 
Posts: 224
Joined: Fri Feb 03, 2006 4:21 pm
Location: São Paulo, SP - Brazil

Re: error Compiling fwh2206\samples\FiveDBU.prg

Postby Otto » Tue Aug 23, 2022 12:38 pm

Hello Ari,
I copied fivedbu.prg from the previous version and this is compiling.

I did a compare and see that in the new version there is much new MariaDB and SQL stuff. Maybe you have to link those libs.

Best regards,
Otto
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6009
Joined: Fri Oct 07, 2005 7:07 pm

Re: error Compiling fwh2206\samples\FiveDBU.prg

Postby Ari » Tue Aug 23, 2022 12:57 pm

Ok Otto

I'm going to check here.

Thank you
Ari
Thanks,
Ari

FWH 2212 - Harbour 3.2.0 - Embarcadero 7.43 - MySQL
São Paulo - SP - Brasil
www.sisrev.com.br
User avatar
Ari
 
Posts: 224
Joined: Fri Feb 03, 2006 4:21 pm
Location: São Paulo, SP - Brazil

Re: error Compiling fwh2206\samples\FiveDBU.prg

Postby Antonio Linares » Tue Aug 23, 2022 2:53 pm

Dear Ari,

FiveDBU.prg does not work with xHarbour in FWH 22.06, only with Harbour

It has been fixed already to work again with xHarbour for next FWH build
regards, saludos

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

Re: error Compiling fwh2206\samples\FiveDBU.prg

Postby Ari » Tue Aug 23, 2022 4:02 pm

Okay Antonio

I'm very interested in WebView and automatic html generation. :D

Thank you very much

Ari
Thanks,
Ari

FWH 2212 - Harbour 3.2.0 - Embarcadero 7.43 - MySQL
São Paulo - SP - Brasil
www.sisrev.com.br
User avatar
Ari
 
Posts: 224
Joined: Fri Feb 03, 2006 4:21 pm
Location: São Paulo, SP - Brazil

Re: error Compiling fwh2206\samples\FiveDBU.prg

Postby Ari » Tue Aug 23, 2022 5:16 pm

Hello,

This code is from here from the forum


Code: Select all  Expand view

function WSServer( oWndChild )

   local oWebSocketServer := TWebSocketServer()

   USE Customer SHARED
   hb_DbDetach( "customer" )
   
   oWebSocketServer:bOnRequest = { | cRequest, cRet | hb_DbRequest( "CUSTOMER" ),;
                                                      If( cRequest == "prev", DbSkip( -1 ), DbSkip() ),;
                                                      cRet := customer->first,;
                                                      hb_DbDetach( "CUSTOMER" ), cRet }

   oWebSocketServer:Run()

return nil  

 


buildx.bat

generates the error in the link

Code: Select all  Expand view

┌────────────────────────────────────────────────────────────────────────────┐
│ FiveWin for xHarbour 22.06 - Jun. 2022          Harbour development power  │▄
(c) FiveTech 1993-2022 for Microsoft Windows 9X/NT/200X/ME/XP/Vista/7/8/10 │█
└────────────────────────────────────────────────────────────────────────────┘█
  ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
Compiling...
xHarbour 1.2.3 Intl. (SimpLex) (Build 20201212)
Copyright 1999-2020, http://www.xharbour.org http://www.harbour-project.org/
Compiling 'testeari6.prg' and generating preprocessed output to 'testeari6.ppo'...
Generating C source output to 'testeari6.c'...
Done.
Lines 17, Functions/Procedures 1, pCodes 38
Borland C++ 5.82 for Win32 Copyright (c) 1993, 2005 Borland
testeari6.c:
Turbo Incremental Link 5.69 Copyright (c) 1997-2005 Borland
Error: Unresolved external '_HB_FUN_HB_MTVM' referenced from C:\FWH2206\LIB\FIVEHX.LIB|TWEBSOCK
Error: Unresolved external '_HB_FUN_HB_THREADDETACH' referenced from C:\FWH2206\LIB\FIVEHX.LIB|TWEBSOCK
Error: Unresolved external '_HB_FUN_HB_THREADSTART' referenced from C:\FWH2206\LIB\FIVEHX.LIB|TWEBSOCK
Error: Unresolved external '_HB_FUN_HB_BITTEST' referenced from C:\FWH2206\LIB\FIVEHX.LIB|TWEBSOCK
Error: Unresolved external '_HB_FUN_HB_BPEEK' referenced from C:\FWH2206\LIB\FIVEHX.LIB|TWEBSOCK
Error: Unresolved external '_HB_FUN_HB_DEFAULT' referenced from C:\FWH2206\LIB\FIVEHX.LIB|TWEBSOCK
Error: Unresolved external '_HB_FUN_HB_DBDETACH' referenced from C:\FWH2206\SAMPLES\TESTEARI6.OBJ
Error: Unresolved external '_HB_FUN_HB_DBREQUEST' referenced from C:\FWH2206\SAMPLES\TESTEARI6.OBJ
* Linking errors *

c:\fwh2206\samples>

 
Thanks,
Ari

FWH 2212 - Harbour 3.2.0 - Embarcadero 7.43 - MySQL
São Paulo - SP - Brasil
www.sisrev.com.br
User avatar
Ari
 
Posts: 224
Joined: Fri Feb 03, 2006 4:21 pm
Location: São Paulo, SP - Brazil

Re: error Compiling fwh2206\samples\FiveDBU.prg

Postby Antonio Linares » Wed Aug 24, 2022 6:44 am

Dear Ari,

To use such code you have to use Harbour and can't use xHarbour

Our advise is that you migrate to Harbour
regards, saludos

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

Re: error Compiling fwh2206\samples\FiveDBU.prg

Postby Ari » Wed Aug 24, 2022 12:06 pm

Teacher Antonio,

I have a management system and I've been using xHarbour for many years.

My customers, there are more than 300 companies using my system for more than 25 years.

since:
Clipper-DOS, FiveWin since 1996

I don't even know how hard it will be to move to Harbour. I ask you intend to put these resources that I lack in xharbour?.

My purchase was made precisely because of the novelties in automatically generating the system in HTML.

Thank you, I hope you understand my expectation

Ari
Thanks,
Ari

FWH 2212 - Harbour 3.2.0 - Embarcadero 7.43 - MySQL
São Paulo - SP - Brasil
www.sisrev.com.br
User avatar
Ari
 
Posts: 224
Joined: Fri Feb 03, 2006 4:21 pm
Location: São Paulo, SP - Brazil

Re: error Compiling fwh2206\samples\FiveDBU.prg

Postby Antonio Linares » Wed Aug 24, 2022 12:28 pm

Dear Ari,

We do support xHarbour and we will continue doing it, but for HTML automatic generation and sockets management we need to use threads and xHarbour threads support does not work as expected. It is a serious technical limitation.

The migration to Harbour is really easy. You should have all your apps working with Harbour in less than one week. You have all our support and help to do it.

Besides that, Harbour's ability to compile and execute at runtime, thanks to the hbcplr.lib library, makes a real difference with xHarbour. Thanks to this ability you can easily build real ERPs (apps that can grow at runtime, allowing the users to write code and execute it from the apps) using Harbour and this is technically impossible using xHarbour.

For us there is no doubt about it: Harbour is the way to go :-)
regards, saludos

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

Re: error Compiling fwh2206\samples\FiveDBU.prg

Postby Ari » Wed Aug 24, 2022 12:42 pm

Tanks Antonio

I'm going to download the Harbour and start compiling and see what I can solve, it's going to cause a library conflict.

Ari
Thanks,
Ari

FWH 2212 - Harbour 3.2.0 - Embarcadero 7.43 - MySQL
São Paulo - SP - Brasil
www.sisrev.com.br
User avatar
Ari
 
Posts: 224
Joined: Fri Feb 03, 2006 4:21 pm
Location: São Paulo, SP - Brazil


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 85 guests