Page 1 of 2

12.07 build errors

PostPosted: Tue Aug 14, 2012 4:08 pm
by TimStone
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

Re: 12.07 build errors

PostPosted: Tue Aug 14, 2012 7:52 pm
by Antonio Linares
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

Re: 12.07 build errors

PostPosted: Tue Aug 14, 2012 8:07 pm
by TimStone
unresolved extrernal symbol '__iob referenced from FiveHMX.lib( HARBOUR.obj)'.

Re: 12.07 build errors

PostPosted: Wed Aug 15, 2012 4:17 pm
by Enrico Maria Giordano
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

Re: 12.07 build errors

PostPosted: Wed Aug 15, 2012 4:46 pm
by nageswaragunupudi
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.

Re: 12.07 build errors

PostPosted: Wed Aug 15, 2012 5:45 pm
by TimStone
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

Re: 12.07 build errors

PostPosted: Wed Aug 15, 2012 6:05 pm
by Enrico Maria Giordano
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

Re: 12.07 build errors

PostPosted: Wed Aug 15, 2012 7:18 pm
by Antonio Linares
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: Select all  Expand view
...

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

Re: 12.07 build errors

PostPosted: Wed Aug 15, 2012 9:02 pm
by lucasdebeltran
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

Re: 12.07 build errors

PostPosted: Sun Aug 19, 2012 11:56 am
by mauri.menabue
hi all

Missing function calpos() used in TFOLDEX

bye

Re: 12.07 build errors

PostPosted: Sun Aug 19, 2012 1:52 pm
by Antonio Linares
Mauri,

Doing a FWH\samples\buildh.bat testfx1

builds fine and executes fine.

How to reproduce what you say ? thanks

Re: 12.07 build errors

PostPosted: Sun Aug 19, 2012 9:36 pm
by mauri.menabue
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

Re: 12.07 build errors

PostPosted: Mon Aug 20, 2012 2:35 am
by Daniel Garcia-Gil
Hello

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

Re: 12.07 build errors

PostPosted: Mon Aug 20, 2012 10:23 am
by Antonio Linares
Mauri,

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

Please check if you have this file

Re: 12.07 build errors

PostPosted: Mon Aug 20, 2012 2:50 pm
by mauri.menabue
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