Re: [Harbour] Re: hbMK2 - xHarbour ( Oct 2007 ) - Unresolved External

2010-05-14 Thread Antonio Maniero
Don't offend me in any way. I totally understand you. Again maybe my poor English sent wrong impression. As I said *personally IF I am last Harbour user* I would drop a lot of legacy, but I never would that thinking about the whole community. []'s Maniero 2010/5/14 Viktor Szakáts > > It was

Re: [Harbour] Re: hbMK2 - xHarbour ( Oct 2007 ) - Unresolved External

2010-05-14 Thread Viktor Szakáts
> It wasn't my intention make you reply that, I just do a statement trying to > wide the view about the problem. As I wrote I completely agree about the > whole decision and specially your last paragraphs as below. Maybe my poor > English have been confusing about my message. Sorry if message s

Re: [Harbour] Re: hbMK2 - xHarbour ( Oct 2007 ) - Unresolved External

2010-05-13 Thread Antonio Maniero
It wasn't my intention make you reply that, I just do a statement trying to wide the view about the problem. As I wrote I completely agree about the whole decision and specially your last paragraphs as below. Maybe my poor English have been confusing about my message. Please don't waste time on th

Re: [Harbour] Re: hbMK2 - xHarbour ( Oct 2007 ) - Unresolved External

2010-05-13 Thread Viktor Szakáts
Hi, > First of all, I support your decision, don't get me wrong. Maybe this > statement be unnecessary. > > I can (guessing) understand what Massimo said. Some modern > languages/development platforms allow this construction in a portable way > (Java, CLR, Python, Ruby, even Delphi could), som

Re: [Harbour] Re: hbMK2 - xHarbour ( Oct 2007 ) - Unresolved External

2010-05-13 Thread Antonio Maniero
Hi Viktor First of all, I support your decision, don't get me wrong. Maybe this statement be unnecessary. I can (guessing) understand what Massimo said. Some modern languages/development platforms allow this construction in a portable way (Java, CLR, Python, Ruby, even Delphi could), some better

Re: [Harbour] Re: hbMK2 - xHarbour ( Oct 2007 ) - Unresolved External

2010-05-13 Thread Viktor Szakáts
> IMO A mingw solution will be good It's not good because in Harbour we've a basic goal to be _portable_. > Mingw/GCC is most used C compiler in harbour > I bad explain but i think it might be very handy to have inside main > .prg one directive(s) about libraries inclusion. > In first use of h

Re: [Harbour] Re: hbMK2 - xHarbour ( Oct 2007 ) - Unresolved External

2010-05-13 Thread Massimo Belgrano
IMO A mingw solution will be good Mingw/GCC is most used C compiler in harbour I bad explain but i think it might be very handy to have inside main .prg one directive(s) about libraries inclusion. In first use of harbour user have two problem - Wich library i must load? - How resolve Unreso

Re: [Harbour] Re: hbMK2 - xHarbour ( Oct 2007 ) - Unresolved External

2010-05-13 Thread Viktor Szakáts
>> About an idea of completely different implementation of pragma >> I want remember that xbase++ support an intersting preprocessor directive >> #pragma library ("mylib.lib") >> Is possible implement also in harbour for minigw? >> or at least adapt something like >> #pragma BEGINDUMP >>#pra

Re: [Harbour] Re: hbMK2 - xHarbour ( Oct 2007 ) - Unresolved External

2010-05-13 Thread Przemysław Czerpak
On Wed, 12 May 2010, Massimo Belgrano wrote: Hi Massimo, > About an idea of completely different implementation of pragma > I want remember that xbase++ support an intersting preprocessor directive > #pragma library ("mylib.lib") > Is possible implement also in harbour for minigw? > or at le

Re: [Harbour] Re: hbMK2 - xHarbour ( Oct 2007 ) - Unresolved External

2010-05-12 Thread Viktor Szakáts
> I do not know if it will make-up in hnMK2, > I understand your concerns, but the code below, > and I am sure it has greater margins to be refined, > if included in hbMK2 will solve the problem for > applications which mix compile time switches > in not an organized way. It also does not break

[Harbour] Re: hbMK2 - xHarbour ( Oct 2007 ) - Unresolved External

2010-05-12 Thread Pritpal Bedi
Viktor Szakáts wrote: > > > I'll implement a trick to solve this for xhb users. > > I do not know if it will make-up in hnMK2, I understand your concerns, but the code below, and I am sure it has greater margins to be refined, if included in hbMK2 will solve the problem for applications wh

Re: [Harbour] Re: hbMK2 - xHarbour ( Oct 2007 ) - Unresolved External

2010-05-12 Thread Viktor Szakáts
> On Wed, 12 May 2010, Szak�ts Viktor wrote: >> Is it not enough to select between -tWM / cw32mt and >> -tW / cw32 based on the -st/-mt flag when in -xhb >> mode? > > As I said it will break user custom builds which use -tWM flag to compile > whole xHarbour code. Such users will have to use -mt

[Harbour] Re: hbMK2 - xHarbour ( Oct 2007 ) - Unresolved External

2010-05-12 Thread Pritpal Bedi
Viktor Szakáts wrote: > >> I've just check HBMK2 code and I do not know if Viktor can help you much. >> In fact the problem is that xHarbour uses different switches for MT and >> ST libraries and not all core libraries are compiled for MT mode. It >> means that all xHarbour MT BCC binaries are p

Re: [Harbour] Re: hbMK2 - xHarbour ( Oct 2007 ) - Unresolved External

2010-05-12 Thread Przemysław Czerpak
On Wed, 12 May 2010, Szak�ts Viktor wrote: > Is it not enough to select between -tWM / cw32mt and > -tW / cw32 based on the -st/-mt flag when in -xhb > mode? As I said it will break user custom builds which use -tWM flag to compile whole xHarbour code. Such users will have to use -mt HBMK2 switc

Re: [Harbour] Re: hbMK2 - xHarbour ( Oct 2007 ) - Unresolved External

2010-05-12 Thread Viktor Szakáts
> I've just check HBMK2 code and I do not know if Viktor can help you much. > In fact the problem is that xHarbour uses different switches for MT and > ST libraries and not all core libraries are compiled for MT mode. It > means that all xHarbour MT BCC binaries are potentially broken because > the

Re: [Harbour] Re: hbMK2 - xHarbour ( Oct 2007 ) - Unresolved External

2010-05-12 Thread Viktor Szakáts
Okay. So next question is in context of -xhb mode: Should -tW / cw32.lib chosen when building in ST mode, or should this be used permanently, or is there some other logic to follow here? Viktor On 2010 May 12, at 20:54, Pritpal Bedi wrote: > > > Przemysław Czerpak wrote: >> >> >> It's com

Re: [Harbour] Re: hbMK2 - xHarbour ( Oct 2007 ) - Unresolved External

2010-05-12 Thread Przemysław Czerpak
On Wed, 12 May 2010, Pritpal Bedi wrote: Hi, > xMate compiles the same source as: > [1]:Bcc32.Exe -D__xDEVELOPMENT__ -D__xCACHE2009__ -D -d -5 -6 -a8 -c -O2 > -tW -DHB_FM_STATISTICS_OFF -DHB_NO_DEFAULT_API_MACROS > -DHB_NO_DEFAULT_STACK_MACROS -DHB_OS_WIN_32 -IInclude > -IC:\Dev\BCC55\Include

Re: [Harbour] Re: hbMK2 - xHarbour ( Oct 2007 ) - Unresolved External

2010-05-12 Thread Przemysław Czerpak
On Wed, 12 May 2010, Pritpal Bedi wrote: Hi, > > It's completely unimportant which code exploited the problem in > > visible way. Important is only that you are mixing files compiled > > for ST and MT mode (with and without -tWM flag) during linking > > final application and this is the source of

Re: [Harbour] Re: hbMK2 - xHarbour ( Oct 2007 ) - Unresolved External

2010-05-12 Thread Viktor Szakáts
> This is probably the _REAL_ cause. > > I have checked, if not otherwise nullified, even if -st flag is > sent to hbMK2, it always compiles C code as : > > bcc32.exe -c -q -tWM -d -6 -O2 -OS -Ov -Oi -Oc -w -Q -w-sig- > -nE:\dev_hbmk\xharbour\obj\cacherdd -IC:\xharbour\include > -ID:\Projects\Ca

[Harbour] Re: hbMK2 - xHarbour ( Oct 2007 ) - Unresolved External

2010-05-12 Thread Pritpal Bedi
Przemysław Czerpak wrote: > > > It's completely unimportant which code exploited the problem in > visible way. Important is only that you are mixing files compiled > for ST and MT mode (with and without -tWM flag) during linking > final application and this is the source of your problem. > All

[Harbour] Re: hbMK2 - xHarbour ( Oct 2007 ) - Unresolved External

2010-05-12 Thread Pritpal Bedi
In continuation... Pritpal Bedi wrote: > > > Przemysław Czerpak wrote: >> >> It's completely unimportant which code exploited the problem in >> visible way. Important is only that you are mixing files compiled >> for ST and MT mode (with and without -tWM flag) during linking >> final applicat

[Harbour] Re: hbMK2 - xHarbour ( Oct 2007 ) - Unresolved External

2010-05-12 Thread Pritpal Bedi
Przemysław Czerpak wrote: > > It's completely unimportant which code exploited the problem in > visible way. Important is only that you are mixing files compiled > for ST and MT mode (with and without -tWM flag) during linking > final application and this is the source of your problem. > All wha

Re: [Harbour] Re: hbMK2 - xHarbour ( Oct 2007 ) - Unresolved External

2010-05-12 Thread Przemysław Czerpak
On Wed, 12 May 2010, Pritpal Bedi wrote: Hi Pritpal, > >> > I thought that you want to introduce full separation of compiled > > the #pragma low level behavior strictly depends on > > current compiler implementation. It may change in > My current requirement is to just get rid of the unresolved

[Harbour] Re: hbMK2 - xHarbour ( Oct 2007 ) - Unresolved External

2010-05-12 Thread Pritpal Bedi
Viktor Szakáts wrote: > >> BTW we can also introduce #pragma push/pop which can be used >> by user to resolve the problem of interaction between compiler >> switches in much more flexible way. > > It's very good idea. Maybe it even makes the per file > issue easier to fix, since it's possible

Re: [Harbour] Re: hbMK2 - xHarbour ( Oct 2007 ) - Unresolved External

2010-05-12 Thread Viktor Szakáts
Hi Przemek, > the #pragma low level behavior strictly depends on > current compiler implementation. It may change in > the future or may need some completely different > implementation for modified compiler code so it should > not be sth what we can define as strict part of language [snip] > If yo

Re: [Harbour] Re: hbMK2 - xHarbour ( Oct 2007 ) - Unresolved External

2010-05-12 Thread Massimo Belgrano
Hi Przemek, About an idea of completely different implementation of pragma I want remember that xbase++ support an intersting preprocessor directive #pragma library ("mylib.lib") Is possible implement also in harbour for minigw? or at least adapt something like #pragma BEGINDUMP #pragma c

[Harbour] Re: hbMK2 - xHarbour ( Oct 2007 ) - Unresolved External

2010-05-12 Thread Pritpal Bedi
Przemek Przemysław Czerpak wrote: > >> > I thought that you want to introduce full separation of compiled > > the #pragma low level behavior strictly depends on > current compiler implementation. It may change in > My current requirement is to just get rid of the unresolved external "_errno

Re: [Harbour] Re: hbMK2 - xHarbour ( Oct 2007 ) - Unresolved External

2010-05-12 Thread Przemysław Czerpak
On Wed, 12 May 2010, Szak�ts Viktor wrote: Hi Viktor, > > I thought that you want to introduce full separation of compiled > > PRG modules specified at command line so hbmk2 which now passed > > all prg modules to harbour compiler in single call can be safely > > used without any interactions bet

Re: [Harbour] Re: hbMK2 - xHarbour ( Oct 2007 ) - Unresolved External

2010-05-12 Thread Viktor Szakáts
Hi Przemek, On 2010 May 12, at 12:33, Przemysław Czerpak wrote: > On Wed, 12 May 2010, Szak�ts Viktor wrote: > > Hi Viktor, > >> My only concern is #pragmas. Here compatibility >> doesn't apply as Clipper didn't have them. >> >> Do you think it can be fixed to reset the #pragma >> settings t

Re: [Harbour] Re: hbMK2 - xHarbour ( Oct 2007 ) - Unresolved External

2010-05-12 Thread Przemysław Czerpak
On Wed, 12 May 2010, Szak�ts Viktor wrote: Hi Viktor, > My only concern is #pragmas. Here compatibility > doesn't apply as Clipper didn't have them. > > Do you think it can be fixed to reset the #pragma > settings to initial state after compiling each > separate source file? Probably yes but

Re: [Harbour] Re: hbMK2 - xHarbour ( Oct 2007 ) - Unresolved External

2010-05-12 Thread Viktor Szakáts
Hi Przemek, >> I hope Przemek can take an expert look on this issue, >> as I'm sure it's not intentional that such options are >> changing across sources. F.e. this causes unpredictable >> results for anyone using 'harbour *.prg' on a *nix >> system f.e. These pragmas are meant to be per file.

Re: [Harbour] Re: hbMK2 - xHarbour ( Oct 2007 ) - Unresolved External

2010-05-12 Thread Przemysław Czerpak
On Tue, 11 May 2010, Szak�ts Viktor wrote: Hi, > > Then I searched the sources for #pragma directives. > > Because I am not the author of those sources, I never knew that > > multiple #pragma directives were in use. And that was the potential > > reason to get thousands of warnings which ultimate

Re: [Harbour] Re: hbMK2 - xHarbour ( Oct 2007 ) - Unresolved External

2010-05-11 Thread Viktor Szakáts
>>> I am compiling/linking a extremely large project >>> with hbIDE, hbMK2 ( hbMK2 is slightly modified to supply >>> sources to Harbour compiler one-by-one, rest remaining the >>> same as is ) with -xhb switch. >> >> Too bad, this way we will never know what the real problem is. >> Did you rea

[Harbour] Re: hbMK2 - xHarbour ( Oct 2007 ) - Unresolved External

2010-05-11 Thread Pritpal Bedi
Viktor Szakáts wrote: > >> I am compiling/linking a extremely large project >> with hbIDE, hbMK2 ( hbMK2 is slightly modified to supply >> sources to Harbour compiler one-by-one, rest remaining the >> same as is ) with -xhb switch. > > Too bad, this way we will never know what the real probl

[Harbour] Re: hbMK2 - xHarbour ( Oct 2007 ) - Unresolved External

2010-05-11 Thread Pritpal Bedi
Pritpal Bedi wrote: > > In continuation... > > "Hello World" prg buils fine with -lgtwin. > The compile and link flags are the same as of > larger application. > > So where is the catch? > Any clues guys ? I am struck to this very fact and appears to be a show-stopper to implement hbIDE in

[Harbour] Re: hbMK2 - xHarbour ( Oct 2007 ) - Unresolved External

2010-05-10 Thread Pritpal Bedi
In continuation... "Hello World" prg buils fine with -lgtwin. The compile and link flags are the same as of larger application. So where is the catch? Note that there are few .C sources and few .prg sources also contain C code. Any help is appreciated. - enjoy hbIDEing... Pr