GFX Sample in Linux ubuntu 10.04

31 views
Skip to first unread message

Bruno Luciani

unread,
Jan 10, 2011, 1:15:42 PM1/10/11
to harbou...@googlegroups.com
Testing this sample I found this error

You are using a non graphics capable gt:
TRM

I know that I need to compile using some graphic term but not work again

hbmk2 gfx -gtxwc

I get this error now

Copyright (c) 1999-2011, http://harbour-project.org/
Compiling 'gfx.prg'...
gfx.prg(94) Warning W0032  Variable 'NSCREENWIDTH' is assigned but not used in function 'MAIN(29)'

If I put this line , indicating to use gtxwc to prg

REQUEST HB_GT_XWC_DEFAULT

The sample works ok , compiling only using hbmk2 gfx

Thanks

Burno


Viktor Szakáts

unread,
Jan 10, 2011, 1:40:30 PM1/10/11
to harbou...@googlegroups.com, harbou...@googlegroups.com


Sent from my iPad
The change has nothing to do with the warning disappearing.
You just move the file away so -w3 option didn't activate via hbmk.hbm.

-- Viktor




Thanks

Burno


Przemysław Czerpak

unread,
Jan 10, 2011, 1:56:04 PM1/10/11
to harbou...@googlegroups.com
Hi Bruno,

On Mon, 10 Jan 2011, Bruno Luciani wrote:
> Testing this sample I found this error
> You are using a non graphics capable gt:
> TRM
> I know that I need to compile using some graphic term but not work again
> hbmk2 gfx -gtxwc
> I get this error now
> Copyright (c) 1999-2011, http://harbour-project.org/
> Compiling 'gfx.prg'...
> gfx.prg(94) Warning W0032 Variable 'NSCREENWIDTH' is assigned but not used
> in function 'MAIN(29)'

You compiled gfx.prg in harbour/tests directory so harbour/tests/hbmk.hbm
was automatically included and enabled -w3 switch which caused above
warning. You can ignore it and execute generated gfx executable file.

> If I put this line , indicating to use gtxwc to prg
> REQUEST HB_GT_XWC_DEFAULT
> The sample works ok , compiling only using hbmk2 gfx

The sample was working also before with -gtxwc specified as hbmk2 parameter
and above modification doesn't change anything. Just simply you probably
copied gfx.prg to other directory without hbmk.hbm having -w3 switch so
warning was not shown during compilation.
Anyhow thanks for the info. I'll remove unused code from gfx.prg to pacify
above warning.

best regards,
Przemek

Bruno Luciani

unread,
Jan 10, 2011, 6:27:49 PM1/10/11
to harbou...@googlegroups.com
No I just modify original prg in /test folder , adding this line
REQUEST HB_GT_XWC_DEFAULT
and compile using hbmk2 gfx

and works ok

If you considere that is not necesary to modifiy anything
it is ok for me

Thanks for your reply

Bruno

2011/1/10 Przemysław Czerpak <dru...@acn.waw.pl>

Viktor Szakáts

unread,
Jan 10, 2011, 6:41:03 PM1/10/11
to harbou...@googlegroups.com
No I just modify original prg in /test folder , adding this line

REQUEST HB_GT_XWC_DEFAULT
and compile using hbmk2 gfx

and works ok

Nonsense! Do you think a REQUEST line would 
change the warning level of the build? Or make 
an unused value used?

If you didn't move the file away, you do something 
else which cases that hbmk.hbm doesn't kick in.

Viktor

Bruno Luciani

unread,
Jan 10, 2011, 7:03:26 PM1/10/11
to harbou...@googlegroups.com
Sorry about that , I think that I am helping to improve harbour and his samples prg
ignore my email if you think is all ok

and I don' t think anything , I just share my experiencies

My apologies to you

Bruno


2011/1/10 Viktor Szakáts <harbo...@syenar.hu>

Viktor Szakáts

unread,
Jan 10, 2011, 7:09:39 PM1/10/11
to harbou...@googlegroups.com
Sorry about that , I think that I am helping to improve harbour and his samples prg
ignore my email if you think is all ok

and I don' t think anything , I just share my experiencies

You're insisting on spreading wrong information.

For the warning: thank you. For the suggestion that 
it's solved by adding REQUEST, and the wrong hint 
that -gtxvt doesn't work, sorry but I cannot thank you, 
since it's absolute technical nonsense.

Spreading technical nonsense (and insisting on it) 
without making any tests and trying to understand 
why things work the way they do and/or clarifying your 
point of view, is the best way to spread "urban legends", 
which are later quite difficult to kill off.

That's the main reason I used to answer such 
nonsense from time to time.

Viktor

Bruno Luciani

unread,
Jan 10, 2011, 7:24:06 PM1/10/11
to harbou...@googlegroups.com
Viktor , could you calm a litle bit ?

You think that I am trying to sabotage harbour ? spreading wrong information ?

Whats is /tests folder intended to be ?

I think it is a way to tests diferent harbour functions and libraries
If not exist a warning about I think that the way to try a sample is compiling it using
hbmk2.

When a software need some directives harbour developers put it in a folder and add an .hbp or similar file

When I try a .prg file in /test folder I think that it must compile using simple comand , not that I need
an nuclear investigation to test it .

How can I learn harbour if i can not test it ?

If I say something with nonsense just point to it or ignore my email

but you don't need to atack me in this way

Bruno

 



2011/1/10 Viktor Szakáts <harbo...@syenar.hu>
Sorry about that , I think that I am helping to improve harbour and his samples prg

Viktor Szakáts

unread,
Jan 10, 2011, 9:31:31 PM1/10/11
to harbou...@googlegroups.com
Viktor , could you calm a litle bit ?

I'm calm.
 
You think that I am trying to sabotage harbour ? spreading wrong information ?

I stated you insist on wrong conclusion, and 
you fail to recheck your build method and/or 
listen to anybody to clear away your false 
conclusions. This stays true.

Whats is /tests folder intended to be ?

I think it is a way to tests diferent harbour functions and libraries
If not exist a warning about I think that the way to try a sample is compiling it using
hbmk2. 
When a software need some directives harbour developers put it in a folder and add an .hbp or similar file

Where did you read that you should not use hbmk2?
 
When I try a .prg file in /test folder I think that it must compile using simple comand , not that I need
an nuclear investigation to test it .

Simple build method? This is shockingly new to me, 
pls tell me about it.

How can I learn harbour if i can not test it ?

Where did you read that you should not use tests?

BTW I've even corrected that warning you reported, pbly 
you didn't even follow that either.

If I say something with nonsense just point to it or ignore my email

Yes, you keep continuing on your wrong train of thought 
and deducting even more wrong conclusions and inventing 
stuff never written or meant.

Facts (some of them truly shocking and new ;):
- tests are there to use
- hbmk2 is okay to use
- hbmk2 is okay to use even for tests
- -w3 is enabled by hbmk.hbm file in 'tests' dir if hbmk2 is run while 'tests' dir is the current dir
- you stumbled in a -w3 warning in one of the tests
- 'REQUEST' doesn't suppress -w3 warnings (in contrary to what you concluded)
- omitting -gtxwc hbmk2 option doesn't suppress -w3 warnings. (in contrary to what you concluded)
- even with a -w3 warning, any apps in '/tests' should build.
  (hint: there is no -es2 option in /tests/hbmk.hbm, so warnings are not fatal)

Remaining "mystery" which we will never know the answer for:
- what exactly did you do so that hbmk.hbm and/or -w3 option got 
  ignored or got overridden between your trials, so that the warning 
  disappeared for you.

Viktor

Przemysław Czerpak

unread,
Jan 11, 2011, 3:46:17 AM1/11/11
to harbou...@googlegroups.com
On Mon, 10 Jan 2011, Bruno Luciani wrote:
> No I just modify original prg in /test folder , adding this line
> REQUEST HB_GT_XWC_DEFAULT
> and compile using hbmk2 gfx
> and works ok

1. It was working before.
2. It's impossible to pacify that warning by adding above line so
you have to make sth else

> If you considere that is not necesary to modifiy anything
> it is ok for me

This is unimpportant for me. The only one problem is sending
false information here which creates problems in the future
when other people read such messages and then we have some
incredible theory about Harbour behavior and examples which
of course cannot work.

best regards,
Przemek

Bruno Luciani

unread,
Jan 11, 2011, 7:20:28 AM1/11/11
to harbou...@googlegroups.com
It is evident  that language barrier it is a problem
and we do not understand each other

Probably my fault , my english is not so good :-)

I never said that REQUEST HB_GT_XWC_DEFAULT
pacify a warning

It is probably that compile gfx sample using -GTXWC is wrong in test folder


This is the original message of gfx sample

You are using a non graphics capable gt:
TRM

In this moment and in the same folder /tests I just try to compile the sample
using hbmk2 -gtxwc

In this moment I get this variavel error


gfx.prg(94) Warning W0032  Variable 'NSCREENWIDTH' is assigned but not used in function 'MAIN(29)'

Situation that was corrected by Viktor ( thanks Viktor )

When I add the request , the sample not generate anymore the unused variavel error
I don't know why , do you try  ?

Reading my 1st email , I understand that my report belies that the request pacify the warning , but it wasn ' t my intention

If you are ok we end this discussion here because it leads nowhere

Bruno

2011/1/11 Przemysław Czerpak <dru...@acn.waw.pl>
Reply all
Reply to author
Forward
0 new messages