On Wed, 05 Nov 2008, David Arturo Macias Corona wrote: Hi David,
> >Should be fixed. Please tray after: > > 2008-11-04 17:28 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl) > >> ../../../thread.c(402): Warning! W869: col(25) use of '_beginthread' > >> requires build target to be multi-threaded > >add -bm to OpenWatcom switches (CPPFLAGS) in owatcom.cf > OW docs said on "bm": > ----------------- > (Netware, OS/2, Win32 only) This option causes the compiler to emit into > the object file references to the appropriate multi-threaded library > name(s). The macros _MT and __SW_BM will be predefined if "bm" is > selected. > ----------------- > If "-bm" is added to owatcom.cf how it affect Harbour ST / MT ? > "appropriate multi-threaded library name(s)" refer to OW libraries ? It will make what we want. The code will use MT safe functions from OpenWatcom CRTL. > Thanks Przemek, AND CONGRATULATIONS :-) > For first time in Human history we have a build complete for current > Harbour - OS/2 - OpenWatcom 1.7 :-) Fine and many thanks for your help. > In make_ow.log I found: > for hbvmmt: > ../../../thread.c(402): Warning! W869: col(25) use of '_beginthread' > requires build target to be multi-threaded > ( not -bm added until confirmation ) -bm should pacify this warning and make other code which may call CRTL functions ready to use in MT programs. If possible please also make some tests with tests/mt/mttest*.prg hbmk_os2.cmd should be updated to support also OpenWatcom builds. You can take the code for OpenWatcom from hbmk.bat. If OS2 does not have such small command line size limits like DOS and Windows COMMAND.COM then instead of creating _hb_mk.tmp file for linker you can pass all parameters to wlink directly. > hbtest.exe output included below > Can you add harbour\config\os2\owatcom.cf to SVN ? yes sure but if possible please send me your current os2\owatcom.cf to avoid stupid typos caused by modifications I cannot verify. > ----------------- > and for config\os2\owatcom.cf: > >[19]: CPPFLAGS = -w2 -d1 -zq -bt=NT > -bt=OS2 > >[56]: echo @%watcom%/binnt/wlink.lnk >> __link__.tmp > For now is excluded > If included, should be used SYSTEM directive and which value ? Probably in 32bit OS2 by default is set to: os2v2 or os2v2_pm. This is necessary when you want to change the default to create different binaries, f.e. for console or GUI mode, DLLs or you want to make cross builds. > Harbour Regression Test Suite > Copyright (c) 1999-2008, http://www.harbour-project.org/ > --------------------------------------------------------------------------- > Version: Harbour 1.1.0dev (Rev. 9832) > Compiler: Open Watcom C++ 12.70.8 (32-bit) > OS: OS/2 4.50 > Date, Time: 2008.11.05 01:50:46 > Output: (stdout) > Shortcut opt.: ON > Switches: > =========================================================================== [...] > Test calls passed: 4687 ( 99.49 % ) > Test calls failed: 24 ( 0.51 % ) Fine, exactly the same results as on other platforms. best regards, Przemek _______________________________________________ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour