CC prog.c -lL -lm
CC prog.c -lG -lL -lm
CC prog.c -lP -lG -lL -lm
CC prog.c -lW -lP -lG -lL -lX11 -lm
CC prog.c -lD3 -lW -lP -lG -lL -lX11 -lm
Remarks:
CC (g++) prog.c -lW -lP -lG -lL -lX11 -lsocket -lthread -lm
CC (g++) -Ileda-root-path/incl -Lleda-root-path...
The -I flag tells the compiler where to find the header files, the -L tells the compiler where to find the libraries.
setenv LD_LIBRARY_PATH leda-root-path:$LD_LIBRARY_PATH
or you have to use the -R option
CC (g++) -Ileda-root-path/incl -Lleda-root-path -Rleda-root-path ...
The -R flag tells the executable where to find the shared libraries for dynamic linking (-rpath in case of Irix).