harbour_for_mod_harbour error compiler

mod_harbour is an Apache module that allows to run PRGs directly on the web !!!

harbour_for_mod_harbour error compiler

Postby giuliano » Tue Aug 20, 2019 9:01 am

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
giuliano
 
Posts: 44
Joined: Mon Sep 25, 2006 8:38 am
Location: ITALY

Re: harbour_for_mod_harbour error compiler

Postby Antonio Linares » Tue Aug 20, 2019 10:44 am

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_harbour/tree/master/contribs/windows/pdf64%2Bxhb%2Bhbwin%2Bhbct%2Bhbcurl
regards, saludos

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

Re: harbour_for_mod_harbour error compiler

Postby giuliano » Tue Aug 20, 2019 1:35 pm

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
giuliano
 
Posts: 44
Joined: Mon Sep 25, 2006 8:38 am
Location: ITALY

Re: harbour_for_mod_harbour error compiler

Postby Antonio Linares » Wed Aug 21, 2019 12:21 am

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

Re: harbour_for_mod_harbour error compiler

Postby giuliano » Wed Aug 21, 2019 6:38 am

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
giuliano
 
Posts: 44
Joined: Mon Sep 25, 2006 8:38 am
Location: ITALY

Re: harbour_for_mod_harbour error compiler

Postby Carles » Wed Aug 21, 2019 6:44 am

Salutacions, saludos, regards

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

UT Page -> https://carles9000.github.io/
Forum UT -> https://discord.gg/bq8a9yGMWh
Skype -> https://join.skype.com/cnzQg3Kr1dnk
User avatar
Carles
 
Posts: 1137
Joined: Fri Feb 10, 2006 2:34 pm
Location: Barcelona

Re: harbour_for_mod_harbour error compiler

Postby giuliano » Wed Aug 21, 2019 7:48 am

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: 44
Joined: Mon Sep 25, 2006 8:38 am
Location: ITALY

Re: harbour_for_mod_harbour error compiler

Postby giuliano » Wed Aug 21, 2019 3:09 pm

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

Code: Select all  Expand view

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
giuliano
 
Posts: 44
Joined: Mon Sep 25, 2006 8:38 am
Location: ITALY

Re: harbour_for_mod_harbour error compiler

Postby wmormar » Wed Aug 21, 2019 5:19 pm

Amigo,

La linea 4 debe estar como sigue:

DEFAULT cString := ""

Saludos
William, Morales
Saludos

méxico.sureste
User avatar
wmormar
 
Posts: 1074
Joined: Fri Oct 07, 2005 10:41 pm
Location: México

Re: harbour_for_mod_harbour error compiler

Postby cnavarro » Wed Aug 21, 2019 7:55 pm

Also
Code: Select all  Expand view

  hb_default( @cString, "" )
 
Cristobal Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
User avatar
cnavarro
 
Posts: 6548
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: harbour_for_mod_harbour error compiler

Postby giuliano » Thu Aug 22, 2019 6:19 am

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

Have you any solution for TRY CATCH ?

Bye
Giuliano
User avatar
giuliano
 
Posts: 44
Joined: Mon Sep 25, 2006 8:38 am
Location: ITALY

Re: harbour_for_mod_harbour error compiler

Postby Antonio Linares » Thu Aug 22, 2019 6:44 am

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

Re: harbour_for_mod_harbour error compiler

Postby giuliano » Thu Aug 22, 2019 7:26 am

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

viewtopic.php?f=16&t=37140&hilit=msvc64

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

Re: harbour_for_mod_harbour error compiler

Postby Antonio Linares » Thu Aug 22, 2019 7:51 am

#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
Antonio Linares
Site Admin
 
Posts: 42099
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: harbour_for_mod_harbour error compiler

Postby giuliano » Thu Aug 22, 2019 8:02 am

Perfect.
It works.
Thanks for your support

Giuliano
User avatar
giuliano
 
Posts: 44
Joined: Mon Sep 25, 2006 8:38 am
Location: ITALY


Return to mod_harbour

Who is online

Users browsing this forum: No registered users and 4 guests