Tuesday, March 25, 2008

C Programming under Tru64 UNIX

A crash course in C programming under Tru64 UNIX :-). You've got a text editor - ed(1), of course, make(1), install(1) and a C compiler - cc(1) - and you're good to go.

Don't like ED? Well, Tru64 also comes with vi and XEmacs by default, so no worries.

All you need to do now is write a Makefile:

% ed Makefile

hello: hello.o
$(CC) -o $@ $<

hello.o: hello.c
$(CC) -c -o $@ $<

rm -f hello hello.o

% make
cc -c -o hello.o hello.c
cc -o hello hello.c
% ls
Makefile hello hello.c
% hello
Hello, Tru64 UNIX!
% make clean
rm -f hello hello.o
% ls
Makefile hello.c


Petr said...

Hello I have problem with networking in Tru64 Alpha. I have changed hostname of machine and ftp, rlogin, stopped working and I can't find what's wrong.
I would really appritiated your help if you can help me.
Thanks a lot.
my email rezacek [at] gmail [dot] com

cmihai said...

Is the new host name resolvable? (nslookup hostname, make sure it's in DNS or at leasts in the hosts file).

You should also check /etc/hosts and change the old hostname to the new one.