When you compile Motif programs, include the following compiler syntax to enable the compiler to find the Motif and X Window SystemTM header files:
-I/usr/dt/include -I/usr/openwin/include
Use the following compiler syntax to direct the linker to the correct shared libraries as shown in the following:
-R/usr/dt/lib -R/usr/openwin/lib -L/usr/dt/lib -L/usr/openwin/lib
The following is an example of a compile-and-link line for a Motif application:
cc -o myprog -I/usr/dt/include -I/usr/openwin/include myprog.c -R/usr/dt/lib \ -R/usr/openwin/lib -L/usr/dt/lib -lXm -L/usr/openwin/lib -lXt -lX11