FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour xHarbour: no line numbers on compile errors
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
xHarbour: no line numbers on compile errors
Posted: Tue Oct 08, 2013 12:08 PM

Enrico,

A FWH and xHarbour user (Constantino on these forums) has updated to the most recent xHarbour and he reports that he gets no line numbers on compiler errors. Do you also have this problem with xHarbour ? thanks

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: xHarbour: no line numbers on compile errors
Posted: Tue Oct 08, 2013 12:09 PM
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: xHarbour: no line numbers on compile errors
Posted: Tue Oct 08, 2013 12:41 PM
Antonio,

Antonio Linares wrote:Enrico,

A FWH and xHarbour user (Constantino on these forums) has updated to the most recent xHarbour and he reports that he gets no line numbers on compiler errors. Do you also have this problem with xHarbour ? thanks


No, I get line numbers from xHarbour as usual.

EMG
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: xHarbour: no line numbers on compile errors
Posted: Tue Oct 08, 2013 01:23 PM

Enrico,

Please try to compile FWH\samples\fivedbu.prg using xHarbour. You can use FWH\samples\buildx.bat.

I get this (notice there is no info about the error at all):

Compiling...
xHarbour 1.2.3 Intl. (SimpLex) (Build 20130903)
Copyright 1999-2013, http://www.xharbour.org http://www.harbour-project.org/
Compiling 'fivedbu.prg' and generating preprocessed output to 'fivedbu.ppo'...
1 error

No code generated
* Compile errors *

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: xHarbour: no line numbers on compile errors
Posted: Tue Oct 08, 2013 02:01 PM
Antonio,

Antonio Linares wrote:Enrico,

Please try to compile FWH\samples\fivedbu.prg using xHarbour. You can use FWH\samples\buildx.bat.

I get this (notice there is no info about the error at all):

Compiling...
xHarbour 1.2.3 Intl. (SimpLex) (Build 20130903)
Copyright 1999-2013, http://www.xharbour.org http://www.harbour-project.org/
Compiling 'fivedbu.prg' and generating preprocessed output to 'fivedbu.ppo'...
1 error

No code generated
* Compile errors *


I get this in warnings.log:

Code (fw): Select all Collapse
fivedbu.prg(664) Error E0067  TRY section requires a CATCH or FINALLY handler


EMG
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: xHarbour: no line numbers on compile errors
Posted: Tue Oct 08, 2013 02:17 PM

Enrico,

Being an error it should be in comp.log and not in warnings.log

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: xHarbour: no line numbers on compile errors
Posted: Tue Oct 08, 2013 02:19 PM

Enrico,

Are you calling xHarbour this way (or similar) ?

harbour %1 /n /i%fwh%\include;%hdir%\include /w /p %2 %3 > comp.log 2> warnings.log
@type comp.log
@type warnings.log

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: xHarbour: no line numbers on compile errors
Posted: Tue Oct 08, 2013 02:22 PM
Antonio,

Antonio Linares wrote:Enrico,

Being an error it should be in comp.log and not in warnings.log


What are comp.log and warnings.log? I never saw them before. Who writes them? Not the compiler, I think.

EMG
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: xHarbour: no line numbers on compile errors
Posted: Tue Oct 08, 2013 02:23 PM
Antonio,

Antonio Linares wrote:Enrico,

Are you calling xHarbour this way (or similar) ?

harbour %1 /n /i%fwh%\include;%hdir%\include /w /p %2 %3 > comp.log 2> warnings.log
@type comp.log
@type warnings.log


No, I simply used:

Code (fw): Select all Collapse
buildx fivedbu


as per your instructions. :-)

EMG
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: xHarbour: no line numbers on compile errors
Posted: Tue Oct 08, 2013 02:25 PM

Enrico,

We redirect the errors and the warnings this way:
harbour %1 /n /i%fwh%\include;%hdir%\include /w /p %2 %3 > comp.log 2> warnings.log

maybe it should be the way round:
harbour %1 /n /i%fwh%\include;%hdir%\include /w /p %2 %3 > warnings.log 2> comp.log

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: xHarbour: no line numbers on compile errors
Posted: Tue Oct 08, 2013 02:29 PM
Antonio,

Antonio Linares wrote:Enrico,

We redirect the errors and the warnings this way:
harbour %1 /n /i%fwh%\include;%hdir%\include /w /p %2 %3 > comp.log 2> warnings.log

maybe it should be the way round:
harbour %1 /n /i%fwh%\include;%hdir%\include /w /p %2 %3 > warnings.log 2> comp.log


Ok, but anyway xHarbour does print line numbers, right?

EMG
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: xHarbour: no line numbers on compile errors
Posted: Tue Oct 08, 2013 02:32 PM

Enrico,

Not sure yet. I am helping a FWH and xHarbour user who reports that he does not get the line numbers.

Once he confirms me that its ok, then I will report it here also :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 866
Joined: Tue Oct 16, 2007 08:57 AM
Re: xHarbour: no line numbers on compile errors
Posted: Wed Oct 09, 2013 03:48 AM
Antonio,

Yes, same problem.

xHarbour 1.2.3 Intl. (SimpLex) (Build 20130705)
Copyright 1999-2013, http://www.xharbour.org http://www.harbour-project.org/
Compiling '.\SOURCE32\TOfferMsf.prg'...
1 error

No code generated

** error 1 ** deleting .\OBJ32\TOfferMsf.c



xHarbour Compiler build 0.99.71 (SimpLex)
Copyright 1999-2006, http://www.xharbour.org http://www.harbour-project.org/
Compiling '.\SOURCE32\TOfferMsf.prg'...
.\SOURCE32\TOfferMsf.prg(424) Error E0030 Syntax error: "parse error at 'ACTION
'"
.\SOURCE32\TOfferMsf.prg(433) Warning W0001 Ambiguous reference: 'OFNT1'
1 error

No code generated

** error 1 ** deleting .\OBJ32\TOfferMsf.c
Best Regards,



Richard



Harbour 3.2.0dev (r2503251254) => Borland C++ v7.7 32bit

MySQL v8.0

Harbour 3.2.0dev (r2503251254) => Borland C++ v7.7 64bit
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: xHarbour: no line numbers on compile errors
Posted: Wed Oct 09, 2013 06:58 AM
Richard,

thanks.

I have used this test code:
Code (fw): Select all Collapse
function Main()

   x++
   x - y
   
return nil


And I get:

c:\xharbour\bin\harbour test /n /w
xHarbour 1.2.3 Intl. (SimpLex) (Build 20130422)
Copyright 1999-2013, http://www.xharbour.org http://www.harbour-project.org/
Compiling 'test.prg'...
test.prg(3) Warning W0001 Ambiguous reference: 'X'
test.prg(3) Warning W0001 Ambiguous reference: 'X'
test.prg(4) Error E0030 Syntax error: "syntax error at '-'"
1 error

No code generated


so it seems right. Could you Richard check it ? Enrico ? thanks
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: xHarbour: no line numbers on compile errors
Posted: Wed Oct 09, 2013 08:06 AM

Works fine for me, as ever did.

EMG