harbour_for_mod_harbour error compiler

mod_harbour is an Apache module that allows to run PRGs directly on the web !!!
Post Reply
User avatar
giuliano
Posts: 30
Joined: Mon Sep 25, 2006 8:38 am
Location: ITALY

harbour_for_mod_harbour error compiler

Post by giuliano »

Hi Antonio.
I'm trying to test mod_harbour . The first impression is EXCELLENT !!!
Using harbour language on the web with Apache is absolutely amazing . WOW ......

Toady I’m trying to build the harbour for mod_harbour exe compiler for later building an hrb file to include inside my project.
The command that I use is harbour64.bat and this is giving me a lot of errors.
I work in a Windows server machine using Visual studio 2019 -
These are only few lines of errors .....

apache_dyn.obj : error LNK2001: simbolo esterno HB_FUN_WAPI_TREEVIEW_SETCHECKSTATE non risolto
apache_dyn.obj : error LNK2001: simbolo esterno HB_FUN_WAPI_TREEVIEW_SETIMAGELIST non risolto
apache_dyn.obj : error LNK2001: simbolo esterno HB_FUN_WAPI_TREEVIEW_SETINDENT non risolto
apache_dyn.obj : error LNK2001: simbolo esterno HB_FUN_WAPI_TREEVIEW_SETINSERTMARK non risolto
apache_dyn.obj : error LNK2001: simbolo esterno HB_FUN_WAPI_TREEVIEW_SETINSERTMARKCOLOR non risolto
apache_dyn.obj : error LNK2001: simbolo esterno HB_FUN_WAPI_TREEVIEW_SETITEM non risolto
apache_dyn.obj : error LNK2001: simbolo esterno HB_FUN_WAPI_TREEVIEW_SETITEMHEIGHT non risolto
apache_dyn.obj : error LNK2001: simbolo esterno HB_FUN_WAPI_TREEVIEW_SETITEMSTATE non risolto
apache_dyn.obj : error LNK2001: simbolo esterno HB_FUN_WAPI_TREEVIEW_SETLINECOLOR non risolto
apache_dyn.obj : error LNK2001: simbolo esterno HB_FUN_WAPI_TREEVIEW_SETSCROLLTIME non risolto
apache_dyn.obj : error LNK2001: simbolo esterno HB_FUN_WAPI_TREEVIEW_SETTEXTCOLOR non risolto
............
apache_dyn.obj : error LNK2001: simbolo esterno HB_FUN_WAPI_TREEVIEW_SETBKCOLOR non risolto
..\..\..\..\..\bin\win\msvc64\harbour-32-x64.dll : fatal error LNK1120: 1539 esterni non risolti
../../../../../config/dyn.mk:111: recipe for target 'harbour-32-x64.dll' failed
../../config/dyn.mk:107: recipe for target 'descend' failed
../config/dir.mk:71: recipe for target 'dynlib' failed
config/dir.mk:71: recipe for target 'src' failed

Can you tell me where I’m wrong ?
Is there a new version of mod_harbour to download ?
Is there a way to download harbor_for_modharbour complete ?

Thanks a lot.
Giuliano
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: harbour_for_mod_harbour error compiler

Post by Antonio Linares »

Dear Giuliano,

As we link contribs libs (PDF, curl, etc) inside libharbour.dll we can't build it using the standard Harbour makefile.

So when you reach to those errors (unresolved externals) then you have to continue it using this go.bat file:
https://github.com/FiveTechSoft/mod_har ... t%2Bhbcurl
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
giuliano
Posts: 30
Joined: Mon Sep 25, 2006 8:38 am
Location: ITALY

Re: harbour_for_mod_harbour error compiler

Post by giuliano »

Hi Antonio,
Thanks for your quickly answer .
My focus is to test some features of mod_harbour and one of this is HRB files (precompiled files) for LOAD it inside mod_harbour PRG .
The question is : how can i make HRB files ? What is the right way ?
So i don't need to recompile DLL but only to generate HRB files.

Thanks in advance..

Giuliano
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: harbour_for_mod_harbour error compiler

Post by Antonio Linares »

to build the .hrb file do: harbour -gh -n testhrb.prg

Please review mod_harbour/samples/plugin.prg and testhrb.prg (and .hrb)
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
giuliano
Posts: 30
Joined: Mon Sep 25, 2006 8:38 am
Location: ITALY

Re: harbour_for_mod_harbour error compiler

Post by giuliano »

Hi Antonio,
for do this test i need to obtain harbour.exe to build hrb file.
Where i find it ?
I've download all the sources for harbour_for_modharbour and recompile all
but I have the error i sent you .
Can you tell me where i can obtain harbour.exe with the last improvement ?
Thanks
Giuliano
User avatar
Carles
Posts: 937
Joined: Fri Feb 10, 2006 2:34 pm
Location: Barcelona
Contact:

Re: harbour_for_mod_harbour error compiler

Post by Carles »

Salutacions, saludos, regards

"...programar es fácil, hacer programas es difícil..."

https://modharbour.app
https://modharbour.app/compass
https://forum.modharbour.app
User avatar
giuliano
Posts: 30
Joined: Mon Sep 25, 2006 8:38 am
Location: ITALY

Re: harbour_for_mod_harbour error compiler

Post by giuliano »

Thanks Carles,
I think we must use a particular release of harbour .
So i made a test with the official harbour release and i generate my first hrb files.
All is ok.

Now i've another problem . Some commands are giving error in compiling procedure
like DEFAULT values and TRY CATCH ...

Thanks to all
Giuliano
User avatar
giuliano
Posts: 30
Joined: Mon Sep 25, 2006 8:38 am
Location: ITALY

Re: harbour_for_mod_harbour error compiler

Post by giuliano »

Hi to all,
here my example ( and errors ) :

Code: Select all

Function TEST(cstring)

local number:=0
DEFAULT cstring TO ""

IF cstring == "error"
    number:=18
ENDIF

TRY
    number++
CATCH
FINALLY
    number:=0
END

Return number
 
test.prg(4) Error E0030 Syntax error "syntax error at 'CSTRING'"
test.prg(10) Error E0020 Incomplete statement or unbalanced delimiters
test.prg(12) Error E0020 Incomplete statement or unbalanced delimiters
test.prg(13) Error E0020 Incomplete statement or unbalanced delimiters
test.prg(15) Error E0010 ENDIF does not match IF

Thanks
Giuliano
User avatar
wmormar
Posts: 1050
Joined: Fri Oct 07, 2005 10:41 pm
Location: México
Contact:

Re: harbour_for_mod_harbour error compiler

Post by wmormar »

Amigo,

La linea 4 debe estar como sigue:

DEFAULT cString := ""

Saludos
William, Morales
Saludos

méxico.sureste
User avatar
cnavarro
Posts: 5792
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: harbour_for_mod_harbour error compiler

Post by cnavarro »

Also

Code: Select all

  hb_default( @cString, "" )
 
C. Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
Si alguien te dice que algo no se puede hacer, recuerda que esta hablando de sus limitaciones, no de las tuyas.
User avatar
giuliano
Posts: 30
Joined: Mon Sep 25, 2006 8:38 am
Location: ITALY

Re: harbour_for_mod_harbour error compiler

Post by giuliano »

Thanks cnavarro,
hb_default(.....) works perfectly.

Have you any solution for TRY CATCH ?

Bye
Giuliano
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: harbour_for_mod_harbour error compiler

Post by Antonio Linares »

Giuliano,

TRY ... CATCH is already supported in mod_harbour

Please run ? hb_BuildDate() and let me know what you get
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
giuliano
Posts: 30
Joined: Mon Sep 25, 2006 8:38 am
Location: ITALY

Re: harbour_for_mod_harbour error compiler

Post by giuliano »

Antonio,
i use harbour_msvc64_20190508.zip download
from a link you have posted in this forum.

http://forums.fivetechsupport.com/viewt ... lit=msvc64

Thanks
Giuliano
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: harbour_for_mod_harbour error compiler

Post by Antonio Linares »

#xcommand TRY => BEGIN SEQUENCE WITH {| oErr | Break( oErr ) }

#xcommand CATCH [<!oErr!>] => RECOVER [USING <oErr>] <-oErr->

#xcommand FINALLY => ALWAYS

simply add these lines at the top of your PRGs, that you are going to turn into HRB files
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
giuliano
Posts: 30
Joined: Mon Sep 25, 2006 8:38 am
Location: ITALY

Re: harbour_for_mod_harbour error compiler

Post by giuliano »

Perfect.
It works.
Thanks for your support

Giuliano
Post Reply