More problems. There is a "THREAD STATIC s_aPorts" declaration before the main procedure in telepathy.prg and no matter how I build this it always crashes with: Error BASE/1003 Variable does not exist: S_APORTS. Even if I put altd() before any other functions in main() it crashes first. I have tried changing it to a PUBLIC inside main(). I have tried it without the 'THREAD', I have compiled it with -mt but all produce the same result. I cannot find any documentation on Harbour variable declarations and scoping anywhere. Even a small test program with a STATIC declared before the main() procedure cannot see the static variable within the program. As I understand it a STATIC declared outside the main procedure should have application wide scope - is this correct?
Barry Jackson wrote: > > That's encouraging - my current version of the program that I want to > write has been in use for years, but I wrote it using Xbase++ and it runs > under Win98. It controls a Digital Video Recorder which is hidden and > inaccessible. > I am trying to change everything to Linux - hence this exercise. > Cheers, > Barry > > > Maurilio Longo wrote: >> >> Barry, >> >> it should be enough for such an use, I was able to talk to a fiscal >> printer >> sending and receiving packets. >> >> I think it's enough to remove that function or, better, use the correct >> one >> for harbour. >> >> Best regards. >> >> Maurilio. >> >> Barry Jackson wrote: >>> Maurilio, >>> Many thanks for your reply. >>> OK that's fine- I will work around that function if I need to. The >>> application I want to write will only be required to open a port and >>> send >>> character strings - there is no handshake so it should not be a problem. >>> I just wanted to be sure that I was not the cause of the failure of the >>> test >>> build! I am new to Linux, but have been playing with Clipper since >>> summer >>> '87. >>> Cheers, >>> Barry >>> >>> Maurilio Longo wrote: >>>> Barry, >>>> >>>> this is a problem inside hbtpathy which comes from xharbour and uses a >>>> function (threadsleep) not available in harbour. >>>> >>>> So this has to be fixed in hbtpathy. >>>> >>>> BTW, I wrote it, and it is more of a proof of concept than a finished >>>> library >>>> that can be used on production systems. >>>> >>>> Best regards. >>>> >>>> Maurilio. >>>> >>>> >>>> >>>> Barry Jackson wrote: >>>>> What am I doing wrong? I am trying to build the telepathy test >>>>> program. >>>>> I am using Mandriva Linux 2009.0 and built harbour using >>>>> mpkg_rpm_from_svn.sh script. >>>>> The make_gcc.sh ran OK in the hbtpathy dir. and >>>>> /usr/lib/harbour/libhbtpathy.a exists. >>>>> Regular "Hello World" programs compile OK and run without problem. >>>>> >>>>> [EMAIL PROTECTED] hbr]$ hbmk @testtp.txt >>>>> Harbour 1.1.0dev (Rev. 9842) >>>>> Copyright (c) 1999-2008, http://www.harbour-project.org/ >>>>> Reading 'testtp.txt'... >>>>> Compiling module 'testtp.prg'... >>>>> Compiling module 'telepath.prg'... >>>>> Lines 1273, Functions/Procedures 34 >>>>> Generating C source output to 'testtp.c'... Done. >>>>> [EMAIL PROTECTED] hbr]$ hbcc testtp.c tplinux.c tpcommon.c >>>>> /home/baz/tmp/ccueA9Uh.o:(.data+0x138): undefined reference to >>>>> `HB_FUN_THREADSLEEP' >>>>> collect2: ld returned 1 exit status >>>>> >>>> -- >>>> __________ >>>> | | | |__| Maurilio Longo >>>> |_|_|_|____| farmaconsult s.r.l. >>>> >>>> >>>> _______________________________________________ >>>> Harbour mailing list >>>> Harbour@harbour-project.org >>>> http://lists.harbour-project.org/mailman/listinfo/harbour >>>> >>>> >>> >> >> -- >> __________ >> | | | |__| Maurilio Longo >> |_|_|_|____| farmaconsult s.r.l. >> >> >> _______________________________________________ >> Harbour mailing list >> Harbour@harbour-project.org >> http://lists.harbour-project.org/mailman/listinfo/harbour >> >> > > -- View this message in context: http://www.nabble.com/Problem-building-telepathy-test-program-tp20707046p20740959.html Sent from the Harbour - Dev mailing list archive at Nabble.com. _______________________________________________ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour