Maurilio:
>Anyway, this code works ok when built using GCC:
>function main()
> hb_threadStart( @t() )
> inkey(100)
>return
>function t()
> local n := 10
> while n-- > 0
> inkey( 1 )
> enddo
>return
That code work fine with gcc335 here
With OpenWatcom
-----------------------
SYS1808:
The process has stopped. The software diagnostic
code (exception code) is 0001.
-----------------------
>David,
>what do you use to build harbour with watcom?
>On my pc, simply trying to build a single .c file from the ide gives a
>trap
>inside OS2KRNL, so I fear it is not SMP ready.
I have not used the IDE, all my tests has been in command line
I do not remember if it is optional, but OW installer make some changes
in CONFIG.sys
I removed that changes and made separate cmd file to set values required
for OW, to avoid conflicts with other compilers
I sent to your e-mail a zip with:
- owset.cmd: Used to set separate environment for OW
- harbour\config\os2\owatcom.cf
Based in Przemek guidelines and win32\owatcom.cf, just use 4 changes
- mi_ow.cmd: Used to build Harbour
- bin\pbaos2.cmd: Use to build separate .prg
bin\pbaos2.cmd [-mt] prgfile
Just change my directories to your directories
I used to test with separate .prg (pbaos2.cmd -mt) and hbrun_mt.exe made
for mt
You can test OW before to apply to Harbour
- Use command line :-)
- Use owset.cmd to set OW environment
- Change to \watcom\samples\os2\mthread.c
- wcl386 -bt=os2 -bm -l=os2v2 mthread
- run mthread.exe
David Macias
_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour