FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Xlsxlibhb_ver2
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Xlsxlibhb_ver2
Posted: Tue Nov 21, 2023 11:47 AM
Enrico Maria Giordano wrote:Can I see the source code you are trying to compile, please? I'm using the new build without any problem.
Download links are provided in the 1st pages of the same thread
Regards



G. N. Rao.

Hyderabad, India
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Xlsxlibhb_ver2
Posted: Tue Nov 21, 2023 11:51 AM

I just tried to compile tutor01.prg and found no problem at all.

Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Xlsxlibhb_ver2
Posted: Tue Nov 21, 2023 11:53 AM
nageswaragunupudi wrote:
Code (fw): Select all Collapse
Embarcadero C++ 7.00 for Win32 Copyright (c) 1993-2015 Embarcadero Technologies, Inc.
Please try with BCC 7.70.
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Xlsxlibhb_ver2
Posted: Tue Nov 21, 2023 12:25 PM

I will try with bcc7.70 for sure.

FWH has many users using different versions of bcc.

Whatever FWH provides should work with different versions

Regards



G. N. Rao.

Hyderabad, India
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Xlsxlibhb_ver2
Posted: Tue Nov 21, 2023 12:28 PM

Can you send me BCC 7.00 to make a test here?

Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Xlsxlibhb_ver2
Posted: Tue Nov 21, 2023 10:40 PM

I can't find BCC 7.00 so I cannot make any test. If you have it, can you send it to me, please?

Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Xlsxlibhb_ver2
Posted: Wed Nov 22, 2023 10:01 AM
Ok, it seems that BCC 7.00 lacks of some symbols. A fast and dirty hack can be as per sample below. But the obvious solution is to drop such an old compiler and switch to a newer version.
Code (fw): Select all Collapse
// Typical Welcome message, from Windows!

#include "FiveWin.ch"

//----------------------------------------------------------------------------//

function Main()

Β  Β MsgInfo( "Hello world from Harbour and FWH!" )
Β  Β 
return nil

//----------------------------------------------------------------------------//


#pragma BEGINDUMP

void __get_std_stream() {}
void _chdir() {}

#pragma ENDDUMP
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Xlsxlibhb_ver2
Posted: Wed Nov 22, 2023 10:08 AM

Or you can use MSC (recommended).

Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Xlsxlibhb_ver2
Posted: Wed Nov 22, 2023 02:41 PM
Using the latest xharbour build and bcc770, I am experiencing these issues
Building tutor01
Code (fw): Select all Collapse
────────────────────────────────────────────────────────────────────────────┐
β”‚ FiveWin for xHarbour 23.10 - Oct. 2023 Β  Β  Β  Β  Β Harbour development power Β β”‚β–„
β”‚ (c) FiveTech 1993-2023 for Microsoft Windows 9X/NT/200X/ME/XP/Vista/7/8/10 β”‚β–ˆ
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜β–ˆ
Β  β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€β–€
Compiling...
xHarbour 1.3.0 Intl. (SimpLex) (Build 20231104)
Copyright 1999-2023, http://www.xharbour.org http://www.harbour-project.org/
Compiling 'tutor01.prg' and generating preprocessed output to 'tutor01.ppo'...
Generating C source output to 'tutor01.c'...
Done.
Lines 13, Functions/Procedures 1, pCodes 16
Embarcadero C++ 7.70 for Win32 Copyright (c) 1993-2023 Embarcadero Technologies, Inc.
tutor01.c:
Borland Resource Compiler Β Version 5.40
Copyright (c) 1990, 1999 Inprise Corporation. Β All rights reserved.
Turbo Incremental Link 6.97 Copyright (c) 1997-2022 Embarcadero Technologies, Inc.
Fatal: Unable to open file 'UUID.LIB'
* Linking errors *
Regards



G. N. Rao.

Hyderabad, India
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Xlsxlibhb_ver2
Posted: Wed Nov 22, 2023 02:48 PM

Please remove uuid.lib from your compile batch.

Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Xlsxlibhb_ver2
Posted: Wed Nov 22, 2023 02:50 PM

Please note that I never used uuid.lib since BCC55 days.

Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Xlsxlibhb_ver2
Posted: Wed Nov 22, 2023 03:01 PM
Now
Code (fw): Select all Collapse
Turbo Incremental Link 6.97 Copyright (c) 1997-2022 Embarcadero Technologies, Inc.
Fatal: Unable to open file 'WS2_32.LIB'
I do not understand why is the problem in linking these libs when they are actually present in the bcc770 libs? May be my ignorance. May be I am doing something wrong.
I would like the Experts to throw some light on this.

Looks like we need to make many changes to our standard buildx.bat being used for decades without any issues on all versions of bcc and xharbour.

Better if you and Antonio decide and provide a new buildx.bat in the FWH, which works with all earlier and latest versions of xharbour and bcc.
Regards



G. N. Rao.

Hyderabad, India
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Xlsxlibhb_ver2
Posted: Wed Nov 22, 2023 03:13 PM

For now, I prefer to stay with the older version of xhabour and bcc7. Actually FWH uses these versions to build all FWH libs.

I will wait till these issues are solved.

Regards



G. N. Rao.

Hyderabad, India
Posts: 8515
Joined: Tue Dec 20, 2005 07:36 PM
Re: Xlsxlibhb_ver2
Posted: Wed Nov 22, 2023 03:18 PM
JoΓ£o Santos - SΓ£o Paulo - Brasil - Phone: +55(11)95150-7341