newbie with motif

This forum is read only. No new submissions are accepted.

Questions about motif? Contact us

2 posts / 0 new
Last post
newbie with motif

Submitted by jinx on Thu, 08/18/2005 - 12:29. General Questions
the hello.c programs found in most books and site how to run it?

hexcpu

Hi jinx,

To run the hello.c file it first needs to be built into a binary executable.
At a shell prompt cd into the directory where the hello.c file is located.
Than enter.

# cc hello.c -o hello -lXm -lXt -lSM -lICE -lX11

You should get a exectable named hello in that directory.
I tried it quick on a Solaris box to make sure I was remembering the command string
correctly and I did get a couple warnings but the little program worked great.

When I previewed this reply I noticed all the " I " look the same in the command string.
All the " I " are lower case "L" except the second letter in "-lICE" is a capital " i ".

Cheers
-mike