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.
No the problem is that is not possible hbmk2 info is allways migging
many user require here "How compile sample from qt or other" because
thie information is not jouned to prg
Since such #pragma can be left out as well (not obligatory),
in this respect it's not much better than adding a simple
comment to source.
xbase++ for same final result use
#pragma library("xppui3.lib")
as you read in ainet sample
http://news.alaska-software.com/readmessage?id=%3c1xwdedeqtb373$.1kbal6arq2jed....@40tude.net%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.
afaik i can add lib in hbc
i am afraid i dont undestand you about what is binary library
to lack in my knowdlege
Here i hope that viktor explain
Why in compile time feature can't add binary library?
I don't want absolutely create new problems
Pulling .hbc files (or .lib files) cannot be done from
binary files (as object and libs) since it relies on source
code parsing and hbmk2 logic, instead of being a linker
feature. We can't change that unless we drop some compilers
from the mix, but even then nothing guarantees that it can
be kept in the future for new compilers.
To put it short:
Everyone posting examples requiring external libs or needing
special options should include the hbmk2 command line in their
posted examples. Easy, simple, straighforward and it works _now_.
Brgds,
Viktor
_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour