On Tue, 27 Oct 2009, Massimo Belgrano wrote:
Hi,
> Because typically it start coping a sample that contain it
> if harbour user get a sample contain:
> #pragma option:hbmk2 mylib.hbc
> request MYLIB
> it will be easy to compile and if it get another sample that include
> #pragma option:hbmk2 hbmemio.hbc
> REQUEST HB_MEMIO
> Follow is a typical sequence
> in the first step compile as sample but in second step lost right way
> note that in second steep the info HB_MEMIO not help discover hbmemio.lib
If you can copy and past part of .prg code why you cannot copy part
of .hbp file?
Or if you see in source code:
compile and link using:
hbmk2 test.prg -lhbmemio
or:
hbmk2 test.prg hbmemio.hbc
why cannot you copy '-lhbmemio' ('hbmemio.hbc') to your compile/link
command?
I do not see any functional difference. In both cases you have to copy
sth from reference code but in the second case you are using unknown
for Clipper users syntax which does not have clear for all behavior.
> xbase++ for same final result use
> #pragma library("xppui3.lib")
> as you read in ainet sample
> http://news.alaska-software.com/readmessage?id=%[email protected]%3e&group=public.soapbox
This is completely different feature because it works at link time so can
be used in binary libraries.
Unfortunately due to portability such feature cannot be added to Harbour
because it may work only with some subset of supported by Harbour C
compilers and practice shows that such non portable features create
much more troubles then resolve problems.
The proposed:
#pragma option:hbmk2 ...
is compile time feature and it does not work with binary libraries.
Looks that using above example you only confirmed that this #pragma
command can confuse users who may just like you expect different
behavior then the real one ;-)
So my current conclusion is that it will only create new problems
instead of help newbie users.
best regards,
Przemek
_______________________________________________
Harbour mailing list
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour