No idea whether this is applicable to you, . . .
There are multiple variations of puts() (with/without \n, etc.)
Surprisingly, printf() is more standardized.
Try printf, instead of puts, and see if it makers a difference.
and/or add a \n to the end of your string literal, in case it is doing
some cockamamy buffering, and not making the outpur until it is given an
end of line marker. That would be absurd, but there are weirder things in
some C libraaries.
--
Grumpy Ol' Fred cisin(a)xenosoft.com
On Wed, 2 Sep 2026, Peter Ekstrom via cctalk wrote:
Hello again,
Yes, this time I am trying to figure out what I'm doing wrong while
creating a C program.
It is still in RSX11M+ on my 11/23+ and PDP-11 C 1.1.
I have a really simple test program like this:
+>type test.c
#include <stdio.h>
main() {
puts("Hello, world!");
}
The following is what I do to compile and task build:
+>type tstbld.cmd
.IFNINS MAC INS $MAC
.IFNINS TKB INS $TKB
PIP TEST.C/PU,TSTBLD.CMD/PU,TSTTKB.CMD/PU
CCC TEST.C
TKB @TSTTKB.CMD
PIP TEST.OBJ;*/DE
PIP TEST.TSK/PU
+>type tsttkb.cmd
TEST/-FP=TEST,LB:[1,1]CFPURSX.OLB/LB
/
UNITS=1
ASG=TI:1
TASK=...TST
LIBR=FCSFSL:RO
/
The code compiles fine and TKB has no issues. I get my test.tsk:
+>dir test.tsk
Directory DU0:[200,2]
2-SEP-2026 21:36
TEST.TSK;2 22. C 02-SEP-2026 21:30
Total of 22./22. blocks in 1. file
I run it as '+>run test' and I just get the prompt back. I expect it to
print to the terminal.
What am I missing? Nothing stands out to me in the manual. I'm sure it's
something stupid.
Any pointers would be greatly appreciated.
- Peter