Compiling problem with xharbour 1.2.1 (6717)

Compiling problem with xharbour 1.2.1 (6717)

Postby Marco Turco » 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
User avatar
Marco Turco
 
Posts: 858
Joined: Fri Oct 07, 2005 12:00 pm
Location: London

Re: Compiling problem with xharbour 1.2.1 (6717)

Postby nageswaragunupudi » Fri Dec 24, 2010 2:58 pm

These are the lines 440 and 441 in fivewin.ch:
Code: Select all  Expand view
/*----------------------------------------------------------------------------//
!short: COMBOBOX */

 

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

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10631
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: Compiling problem with xharbour 1.2.1 (6717)

Postby Marco Turco » Fri Dec 24, 2010 4: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
User avatar
Marco Turco
 
Posts: 858
Joined: Fri Oct 07, 2005 12:00 pm
Location: London

Re: Compiling problem with xharbour 1.2.1 (6717)

Postby Marco Turco » Fri Dec 24, 2010 5:17 pm

solved
Best Regards,

Marco Turco
SOFTWARE XP LLP
User avatar
Marco Turco
 
Posts: 858
Joined: Fri Oct 07, 2005 12:00 pm
Location: London


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: RSalazarU and 87 guests