FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour 12.07 build errors
Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM
12.07 build errors
Posted: Tue Aug 14, 2012 04:08 PM

New errors with 12.07 when linking:

With xHarbour ( .com ) __iob from FiveHMX.lib ( unresolved External )

With MSVC _HB_FUN_HB_COMPILEFROMBUF ( unresolved External )

How are these resolved ?

Thanks.

Tim

Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: 12.07 build errors
Posted: Tue Aug 14, 2012 07:52 PM

Tim,

What is the complete error for With xHarbour ( .com ) __iob from FiveHMX.lib ( unresolved External ) ?

it may report the name of the module that uses it.

thanks

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM
Re: 12.07 build errors
Posted: Tue Aug 14, 2012 08:07 PM

unresolved extrernal symbol '__iob referenced from FiveHMX.lib( HARBOUR.obj)'.

Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: 12.07 build errors
Posted: Wed Aug 15, 2012 04:17 PM

We must be very grateful to Antonio who have the patience to help us with external products like xHarbour.com. I think that xHarbour.com should provide assistance to its customers, not Antonio.

EMG

Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: 12.07 build errors
Posted: Wed Aug 15, 2012 04:46 PM

The function HB_CompileFromBuf() is available only in Harbour. Not available in XHarbour or XHb. This function is called by the new Execute(..) function in harbour.prg. But this is included only harbour build but not xharbour (org) build.

Regards



G. N. Rao.

Hyderabad, India
Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM
Re: 12.07 build errors
Posted: Wed Aug 15, 2012 05:45 PM

I have no problem with the reasoning, but while I complete the transition for my clients, it would be nice to be able to exclude that new function. Also, I posted a missing file for the Harbour / MSVC compiler builds.

I am in total agreement that we should move to Harbour / MSVC ... thats why Antonio and I worked out all the issues. Transitioning my clients, however, is a slower process.

Tim

Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: 12.07 build errors
Posted: Wed Aug 15, 2012 06:05 PM
TimStone wrote:I am in total agreement that we should move to Harbour / MSVC


Why do you want to make that move? Do you have a concrete reason to do it? I have a pair of it to not do it: the bad attitude of the Harbour developers and their lack of respect for back compatibility.

EMG
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: 12.07 build errors
Posted: Wed Aug 15, 2012 07:18 PM
Tim,

Please link hbcplr.lib for hb_CompileFromBuf() with MSVC and Harbour

Regarding __iob
With xHarbour ( .com ) __iob from FiveHMX.lib ( unresolved External )
it seems as caused by this function recently added to harbour.prg FREOPEN_STDERR().

So it should get solved if we extend the #ifndef __XHARBOUR__ section:

Code (fw): Select all Collapse
...

#include <stdio.h>
#include <hbapi.h>

HB_FUNC( FREOPEN_STDERR )
{
   hb_retnl( ( HB_ULONG ) freopen( hb_parc( 1 ), hb_parc( 2 ), stderr ) );
}

#pragma ENDDUMP

#endif  // <== here !!!
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1303
Joined: Tue Jul 21, 2009 08:12 AM
Re: 12.07 build errors
Posted: Wed Aug 15, 2012 09:02 PM

Hi,

Antonio provides very good support. Other xBase companies can´t say the same...

For FWH and FWHX the best compilers are BCC and MSVC. Viktor and others prefer gCC, but they are not focused on Windows apps.

In fact, BCC will be available in 64 bits next september:

http://edn.embarcadero.com/article/39934

http://dn.embarcadero.com/article/42275

Muchas gracias. Many thanks.



Un saludo, Best regards,



Harbour 3.2.0dev, Borland C++ 5.82 y FWH 13.06 [producción]



Implementando MSVC 2010, FWH64 y ADO.



Abandonando uso xHarbour y SQLRDD.
Posts: 181
Joined: Thu Apr 17, 2008 02:38 PM
Re: 12.07 build errors
Posted: Sun Aug 19, 2012 11:56 AM

hi all

Missing function calpos() used in TFOLDEX

bye

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: 12.07 build errors
Posted: Sun Aug 19, 2012 01:52 PM

Mauri,

Doing a FWH\samples\buildh.bat testfx1

builds fine and executes fine.

How to reproduce what you say ? thanks

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 181
Joined: Thu Apr 17, 2008 02:38 PM
Re: 12.07 build errors
Posted: Sun Aug 19, 2012 09:36 PM

Antonio

I run: buildh testfx1 I got this error:
_HB_FUN_CALPOS unresolved external reference from c: \ FWH \ LIB \ FIVEH.LIB | tfoldex.

I rebuilt the library FIVEH.LIB because there was no function: Browse ()
I have not found the source of the function.

bye

Posts: 2365
Joined: Wed Nov 02, 2005 11:46 PM
Re: 12.07 build errors
Posted: Mon Aug 20, 2012 02:35 AM

Hello

the function CalPos() is a internal function, you need use the original fivewin lib...

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: 12.07 build errors
Posted: Mon Aug 20, 2012 10:23 AM

Mauri,

Browse() is inside FWH\sources\function\browse.prg

Please check if you have this file

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 181
Joined: Thu Apr 17, 2008 02:38 PM
Re: 12.07 build errors
Posted: Mon Aug 20, 2012 02:50 PM

hi Antonio

The browse function is present between the source functions, but not in the library of the package FWH.

The program scintila.prg I changed the line 1147

include ". \ .. \ include \ scintila.h"

in

include "\ FWH \ include \ scintila.h"

The program filename.prg I modified the function: cTempFile

if ! "." $ cExtension
    cExtension = "." + cExtension
endif

in

if .not. empty (cExtension)
    if ! "." $ cExtension
          cExtension = "." + cExtension
    endif
endif

if the extension is empty I do not to add the point.

Thanks for your interest
bye