FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Compiling problem with xharbour 1.2.1 (6717)
Posts: 858
Joined: Fri Oct 07, 2005 12:00 PM
Compiling problem with xharbour 1.2.1 (6717)
Posted: Fri Dec 24, 2010 12:56 PM
Hi all,
with the last 1.2.1 (6717) xharbour version there are problems with static declaration on the head of the prg:

k:\XHARBOUR\Bin\Harbour.Exe K:\ACTIVEXP\SOURCE\ACTIVE.PRG -m -n -es2 -ik:\XHARBOUR\Include -dHB_API_MACROS -dHB_FM_STATISTICS_OFF -dHB_STACK_MACROS -ik:\XHARBOUR\Contrib\What32\Include;k:\fwh\include -oK:\ACTIVEXP\Obj\ACTIVE.c

xHarbour Compiler build 1.2.1 (SimpLex) (Rev. 6717)
Copyright 1999-2010, http://www.xharbour.org http://www.harbour-project.org/
Compiling 'K:\ACTIVEXP\SOURCE\ACTIVE.PRG'...
k:\fwh\include\FiveWin.ch(441) Error E0001 Statement not allowed outside of procedure or function
K:\ACTIVEXP\SOURCE\ACTIVE.PRG(17) Error E0004 STATIC declaration follows executable statement
K:\ACTIVEXP\SOURCE\ACTIVE.PRG(18) Error E0004 STATIC declaration follows executable statement
3 errors

No code generated


This is my prg:



#include "FiveWin.ch"
#include "UrlLink.ch"
#include "menu.ch"

#define SRCPAINT 15597702 // 0xEE0086
#define SRCAND 8913094

#DEFINE CLOCK_ON "Shows the clock at the MsgBar..."
#DEFINE CLOCK_OFF "Hides the clock at the MsgBar..."
#DEFINE DATE_ON "Shows the Date at the MsgBar..."
#DEFINE DATE_OFF "Hides the Date at the MsgBar..."
#DEFINE KEYB_ON "Shows the Keyboard status at the MsgBar..."
#DEFINE KEYB_OFF "Hides the KeyBoard status at the MsgBar..."

STATIC oDlg,oBmp,oBar,ownd
static oToolBar

FUNCTION Main()

ownd:=0
set exact on
..
.
..



Any ideas ?
Best Regards,



Marco Turco

SOFTWARE XP LLP
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Compiling problem with xharbour 1.2.1 (6717)
Posted: Fri Dec 24, 2010 02:58 PM
These are the lines 440 and 441 in fivewin.ch:
Code (fw): Select all Collapse
/*----------------------------------------------------------------------------//
!short: COMBOBOX */

Please substitute these two lines with two blank lines and try.
Regards



G. N. Rao.

Hyderabad, India
Posts: 858
Joined: Fri Oct 07, 2005 12:00 PM
Re: Compiling problem with xharbour 1.2.1 (6717)
Posted: Fri Dec 24, 2010 04:23 PM

Hi, this problem is solved with thanks.

I am trying BCC 558 and the lib UUID.LIB seems isn't included in this BCC version, any ideas ?
Thanks in advance.

Turbo Incremental Link 5.69 Copyright (c) 1997-2005 Borland
Fatal: Unable to open file 'UUID.LIB'

Best Regards,



Marco Turco

SOFTWARE XP LLP
Posts: 858
Joined: Fri Oct 07, 2005 12:00 PM
Re: Compiling problem with xharbour 1.2.1 (6717)
Posted: Fri Dec 24, 2010 05:17 PM

solved

Best Regards,



Marco Turco

SOFTWARE XP LLP

Continue the discussion