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 problem is. > Did you read my last e-mail regarding more possible tips? >
Yep. 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 ultimately was killing the process. It is not possible to change anyline in the source. So the solution is to supply each source saparately with needed switches. xMate doe it like this with successful link. Now hbIDE also does the same but only for harbour.exe, bcc32 is called as per hbMK2 anyway. As you also confirmed, if a #pragma is defined for one source, or is included in the source, this retains its effect throughout for next sources unless nullified. This also eliminates the possibility to supply all sources at once ( for this particular scenario where #pragmas are included in the source ). With this method I am able to compile all sources. After a couple of hours I will post what exactly I changed in the hbMK2 to accept switches per source, may be you consider it to be included in hbMK2 to make it more versatile engine. >> Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland >> Error: Unresolved external '_errno' referenced from >> C:\XHARBOUR\LIB\PP.LIB|ppcore > > I don't know why and how xhb tries to use _errno, > but if you can check how xhb's own build system links the > final executable and compare it with the hbmk2 link > command, maybe we can get closer to the solution. > It is xMate and open-source xHarbour we use. The only difference I can see is in C switches what xMate supplies and what hbMK2 supplies. I will show it a little later. May be this could be caused by C sources order or supply. ----- enjoy hbIDEing... Pritpal Bedi http://hbide.vouch.info/ -- View this message in context: http://harbour-devel.1590103.n2.nabble.com/hbMK2-xHarbour-Oct-2007-Unresolved-External-tp5033192p5036718.html Sent from the harbour-devel mailing list archive at Nabble.com. _______________________________________________ Harbour mailing list (attachment size limit: 40KB) Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour