Page 1 of 2

New Fwh 11.09 . TFolderEx error

PostPosted: Fri Oct 14, 2011 2:38 pm
by Rimantas
Hi,
Upgraded to new FWH . I tried to build testfx1.prg with harbour ( harbour 2.1 from FiveTech FTP ) . It return error :

Turbo Incremental Link 5.69 Copyright (c) 1997-2005 Borland
Error: Unresolved external '_HB_FUN_RASCAN' referenced from D:\FWH\LIB\FIVEH.LIB|TFOLDEX
* Linking errors *

Borlands 5.8.2 .

What I must to do ?

[ Added ] With xHarbour it works fine ...

Regards !

Re: New Fwh 11.09 . TFolderEx error

PostPosted: Fri Oct 14, 2011 6:09 pm
by Antonio Linares
Rimantas,

You have to link Harbour xhb.lib too

Re: New Fwh 11.09 . TFolderEx error

PostPosted: Fri Oct 14, 2011 6:34 pm
by Rimantas
Antonio Linares wrote:Rimantas,

You have to link Harbour xhb.lib too


Antonio , I tried buildh.bat from fwh\samples folder . This xhb.lib exist in lib list , after hbct.lib . I only changed paths in bat . I can to say that with previuos version I worked with xHarbour and cfg settings in BCC\bin are for xHrabour . Maybe they are doing wrong job ?

Here are cfg . Bcc32.cfg :
Code: Select all  Expand view

-5
-d
-k-
-O1
-O2
-v-
-WC
-wS
-w-inl-
-I"\bcc58\include;\bcc58\include\gl;\bcc58\include\rw;\bcc58\include\sys;\hrb\include;\fwh\include"
-L"\bcc58\lib;\bcc58\lib\psdk;\hrb\lib;\fwh\lib"
-lj"\bcc58\lib;\bcc58\lib\psdk;\hrb\lib;\fwh\lib"



harbour.cfg :
Code: Select all  Expand view

CC=BCC32.EXE
CFLAGS=-c -I\bcc\include;\bcc58\include\gl;\bcc58\include\rw;\bcc58\include\sys;\hrb\include;\fwh\include
-DHB_GUI
-DHB_BUILD_ST
-DHB_INCLUDE_WINEXCHANDLER
-DHB_NO_PROFILER
-DHB_NO_TRACE
-DHB_WIN32_IO
VERBOSE=NO
DELTMP=YES
-6
-a4
-d
-g0
-k-
-O
-O1
-O2
-OS
-Ob
-Oc
-Ov
-v-
-W
-w



Many thanks in advance for help !

Re: New Fwh 11.09 . TFolderEx error

PostPosted: Fri Oct 14, 2011 7:31 pm
by Antonio Linares
Rimantas,

samples\buildh.bat testfx1

and

samples\buildx.bat testfx1

are both working fine here. Please check that you are using those files and not different ones, thanks :-)

And it is fine to use these config files for Borland:
viewtopic.php?f=17&t=13098

Re: New Fwh 11.09 . TFolderEx error

PostPosted: Fri Oct 14, 2011 7:58 pm
by Rimantas
Antonio Linares wrote:Rimantas,
samples\buildh.bat testfx1
and
samples\buildx.bat testfx1
are both working fine here. Please check that you are using those files and not different ones, thanks :-)
And it is fine to use these config files for Borland:
viewtopic.php?f=17&t=13098


Antonio , buildx.bat testfx1 is working OK . It create application , I'm seeing extended folders , very fine ... But buildh.bat testfx1 return error .

Compiling...
Harbour 2.1.0beta1 (Rev. 14559)
Copyright (c) 1999-2010, http://www.harbour-project.org/
Compiling 'testfx1.prg' and generating preprocessed output to 'testfx1.ppo'...

Lines 4226, Functions/Procedures 5
Generating C source output to 'testfx1.c'... Done.
Borland C++ 5.82 for Win32 Copyright (c) 1993, 2005 Borland
testfx1.c:
Turbo Incremental Link 5.69 Copyright (c) 1997-2005 Borland
Error: Unresolved external '_HB_FUN_RASCAN' referenced from C:\FWH\LIB\FIVEH.LIB|TFOLDEX
* Linking errors *

I only downloaded today new FWH and wanted to try samples . Instaled your distributed harbour ( from FTP with new FWH ) to c:\hrb , borlands I have in bcc58 . Its 5.8.2 version as you can see in bellow message of error . So I changed in buildh.bat borlands and harbour paths . Also instaled xharbour from your FTP to c:\xhrb and changed paths for borlands and xHarbour in buildx.bat . That is working . Cfg files I changed . And I need harbour , because I want to run separated prg's as scripts , but I need and FolderEx ... :-)

With best regards !

Re: New Fwh 11.09 . TFolderEx error

PostPosted: Fri Oct 14, 2011 8:05 pm
by Antonio Linares
Rimantas,

function RAScan() is provided in Harbour xhb.lib, so if you link it then it will build fine. Somehow (wrong path, wrong version used) you are not linking it.

If we review xhb.lib we can check that RAscan() is there:

Image

Re: New Fwh 11.09 . TFolderEx error

PostPosted: Sat Oct 15, 2011 5:13 am
by Rimantas
Antonio Linares wrote:Rimantas,

function RAScan() is provided in Harbour xhb.lib, so if you link it then it will build fine. Somehow (wrong path, wrong version used) you are not linking it.
If we review xhb.lib we can check that RAscan() is there:


It's seems that problem it's here . I repetead harbour install ( from FWH FTP ) , to c:\harbour directory . And with xplorer2 searched rascan in *.lib . Here is the result :
Image . Sorry , can't to add image ... :-( . You can view this image in http://imageshack.us/photo/my-images/832/rascan.jpg/

This function used in libs harbour-21, harbourmt-21, hbextern, hbvm, hbvmmt . All files created 2010.05.23 .

Re: New Fwh 11.09 . TFolderEx error

PostPosted: Sat Oct 15, 2011 6:49 am
by Antonio Linares

Re: New Fwh 11.09 . TFolderEx error

PostPosted: Sat Oct 15, 2011 7:16 am
by Rimantas


Now I get new error :

Compiling...
Harbour 2.1.0beta1 (Rev. 14559)
Copyright (c) 1999-2010, http://www.harbour-project.org/
Compiling 'testfx1.prg' and generating preprocessed output to 'testfx1.ppo'...

Lines 4226, Functions/Procedures 5
Generating C source output to 'testfx1.c'... Done.
Borland C++ 5.82 for Win32 Copyright (c) 1993, 2005 Borland
testfx1.c:
Turbo Incremental Link 5.69 Copyright (c) 1997-2005 Borland
Error: Unresolved external '_hb_parns' referenced from C:\HRB\LIB\XHB.LIB|xhbarr
* Linking errors *

Maybe you can update all harbour distribution ?

With best regards !

Re: New Fwh 11.09 . TFolderEx error

PostPosted: Sat Oct 15, 2011 7:47 am
by Antonio Linares

Re: New Fwh 11.09 . TFolderEx error

PostPosted: Sat Oct 15, 2011 8:01 am
by Rimantas


Compiling...
Harbour 3.1.0dev (Rev. 17025)
Copyright (c) 1999-2011, http://harbour-project.org/
Compiling 'testfx1.prg' and generating preprocessed output to 'testfx1.ppo'...

Lines 4223, Functions/Procedures 5
Generating C source output to 'testfx1.c'... Done.
Borland C++ 5.82 for Win32 Copyright (c) 1993, 2005 Borland
testfx1.c:
Turbo Incremental Link 5.69 Copyright (c) 1997-2005 Borland
Error: 'C:\HRB\LIB\HBRTL.LIB' contains invalid OMF record, type 0x21 (possibly COFF)
* Linking errors *

Re: New Fwh 11.09 . TFolderEx error

PostPosted: Sat Oct 15, 2011 8:08 am
by Antonio Linares
Rimantas,

My apologizes, I posted a wrong one (I need a coffee) :-)

Here you have the right one:
http://code.google.com/p/harbour-and-xharbour-builds/downloads/detail?name=harbour_bcc582_20111015_2.zip&can=2&q=

Re: New Fwh 11.09 . TFolderEx error

PostPosted: Sat Oct 15, 2011 10:39 am
by Rimantas
Antonio Linares wrote:Rimantas,

My apologizes, I posted a wrong one (I need a coffee) :-)

Here you have the right one:
http://code.google.com/p/harbour-and-xharbour-builds/downloads/detail?name=harbour_bcc582_20111015_2.zip&can=2&q=


Oh ... At last ! :-) Thanks , Antonio !

Re: New Fwh 11.09 . TFolderEx error

PostPosted: Sat Oct 15, 2011 12:52 pm
by Antonio Linares
Rimantas,

many thanks for your feedback and patience :-)

Re: New Fwh 11.09 . TFolderEx error

PostPosted: Sun Oct 16, 2011 2:13 pm
by Rimantas
Antonio Linares wrote:Rimantas,

many thanks for your feedback and patience :-)


Antonio , excuse but I'll not give rest to you ... :-) . I tried with MinGw . It return suchs errors :

Compiling...
Harbour 3.1.0dev (Rev. 17025)
Copyright (c) 1999-2011, http://harbour-project.org/
Compiling 'testfx1.prg' and generating preprocessed output to 'testfx1.ppo'...

Lines 4223, Functions/Procedures 5
Generating C source output to 'testfx1.c'... Done.
testfx1.o:testfx1.c:(.data+0x48): undefined reference to `HB_FUN_TFOLDEREX'
.\..\lib/fivehg.lib(TGIF.o):TGIF.c:(.data+0xa8): undefined reference to `HB_FUN_GETGIFINFO'
.\..\lib/fivehg.lib(TGIF.o):TGIF.c:(.data+0xc8): undefined reference to `HB_FUN_FWGIFPLAY'
.\..\lib/fivehg.lib(TGIF.o):TGIF.c:(.data+0xd8): undefined reference to `HB_FUN_FWGIFSTOP'
.\..\lib/fivehg.lib(TGIF.o):TGIF.c:(.data+0xe8): undefined reference to `HB_FUN_FWGIFRESTART'
.\..\lib/fivehg.lib(TGIF.o):TGIF.c:(.data+0xf8): undefined reference to `HB_FUN_FWGIFISRUNNING'
.\..\lib/fivehg.lib(TGIF.o):TGIF.c:(.data+0x108): undefined reference to `HB_FUN_FWGIFEND'
.\..\lib/fivehg.lib(TGIF.o):TGIF.c:(.data+0x138): undefined reference to `HB_FUN_FWSETGIFSIZING'
.\..\lib/fivehg.lib(TGIF.o):TGIF.c:(.data+0x328): undefined reference to `HB_FUN_FWGIFWINDOW'
collect2: ld returned 1 exit status
* Link errors *

All other samples , excluding with resources and folderex , are working . With resources return such similar errors :

testfx3.rc:5: unrecognized escape sequence
testfx3.rc:5: unrecognized escape sequence
C:\hrb\comp\mingw\bin\windres: testfx3.rc:12: syntax error
* Resources errors *

Maybe I'm wrong , but Harbour with MinGw it looks more faster . So this version is interesting ... :-)

With best regards !