Hi all
I have recently downloaded rexxwrapper 2.3 and try to
run building an exe of a "hello world" rexx script
rexx interpreter: regina 3.3
cygnus gcc 3.3.3
My problem is that the say instructions do not work.
Nothing is displayed when exe is started. I have
tested several functions (Arg, Lineout, additions,
etc.). Everything seems to work except of the say-
instructions.
Here is the compile log
This is Rexx/Wrapper 2.3 - 03 January 2004
------------------------------------------
Program Name(-program) [test] testx
Rexx filename(-rexxfiles) [testrexx.rex]
Rexx interpreter(-interpreter) [regina]
Compiler(-compiler) [cygwin]
Rexx Interpreter Header File Directory(-intincdir) [.]
Rexx/Wrapper Source Directory(-srcdir) [.]
Encrypt source: yes/no(-encrypt) [no]
Compress source: yes/no(-compress) [no]
Use tokenised code rather than source: yes/no(-token)
[no]
Call Rexx program as subroutine: yes/no(-subroutine)
[no]
Do you want to build a GUI version: yes/no(-win32gui)
[no]
Compiling intbuild.c...
Linking intbuild...
Running intbuild to produce testx.c...
If you need to dump the original code from the
testx executable, run:
testx --key=1
Compiling testx.c...
Compiling getargv0.c...
Linking testx
Done!
This is the rexx source
D:\programme\rexxwrap23>testx --key=1
--------------- Original program follows --------------
/* */
Say 'Hello world'
--------------- End of Original program ---------------
Mi 14.12.2005 21:49:31
D:\programme\rexxwrap23>
This is the test run
D:\programme\rexxwrap23>testx
Mi 14.12.2005 22:03:15
D:\programme\rexxwrap23>
As you can see, nothing is displayed
I have found out, that in the source testx.c there
exists no string "hello world". Is that ok?
Can anybody help me with this problem?
I have also tried mingw as compiler with the same
result
best regards
fjp
Hi,
It's been a long time and you may well be very beyond this, but I notice you are using Cygnus to build a Windows .EXE. Is it possible the difference between end of lines in *nix and Win may be the culprit? Perhaps if there's no line termination, the output is in a buffer. One way to test this is to use one of the commands that works, e.g.,
m=lineout("stdout", ' ')
and see if it forces "hello world" output.
Me, I have the opposite problem: I note that when I run the prebuilt RexxWrapper on Windows, "say" output actually has TWO carriage returns preceding the linefeed! I can actually see them in a hex editor. Anyone have any thoughts on this?