Compiler stuff

  1. debugger:

1)      purify g++ -g exe_name file_name => exe_name in Solaris.

2)      insure g++ -g exe_name file_name => exe_name in Linux

3)      gdb stuff: g++ -g exe_name file_name => gbd exe_name =>run (params)

  1. limit coredumpsize unlimited
  2. file file_name to see if an executable file is static or dynamic
  3. ldd same as 3



Use SecureCRT to transfer files:

  1. sz filename” to send a file to my desktop from a remote workstation
  2. rz filename” to receive a file from my desktop


Linux Compile Makefile

  1. gcc …. –I/s/…/include for Include and –L/s/…/lib for the library PLUS –lX…to the links
  2. To plot in Linux X window, need to include motif stuff Xm & X11R6 (see some of the instructions at page)

ex) #!/bin/sh

gcc -o dosxyz_show -DMY_COLOR dosxyz_show.c \

-I/s/X11R6/include -L/s/X11R6/lib \

-I/s/motif/include -L/s/motif/lib \

-I/s/xpm/include  -L/s/xpm/lib \

-lXm -lXt -lXmu -lXp -lX11


  1. dos2unix converts Windows text file to Unix text file



Perl Script

Note: You do not need to “chmod +x filename” every time. Once is enough.


XV on Linux:

How to copy and save a picture from any format using xv?

  1. Draw a picture
  2. open xv window by typing “xv”
  3. right click on the xv window
  4. click “grab”
  5. check “hide xv windows”
  6. type 3 for the delay
  7. click on “autograb
  8. move the cursor quickly to the picture
  9. after the beep sound, move the xv window to copy the picture
  10. right click on the new copied window to bring up xv
  11. save, print(change image sizeèprintèreposition the pictureèprint)



How to modify a picture format to postscript?

  1. open the picture using xv
  2. save it as postscript



Removable disk drives for Linux:

>>mount /mnt/(zip, zip250, floppy)/

>>cd  /mnt/(zip, zip250, floppy)/

>>umount /mnt/(zip, zip250, floppy)/


January 7, 2002

Dear Jinho,


> I made a change when I compiled dosxyz_show.c as:


> gcc -g -o dosxyz_show -DMY_COLOR dosxyz_show.c \

> -I/s/X11R6/include -L/s/X11R6/lib \

> -I/s/motif/include -L/s/motif/lib \

> -I/s/xpm/include  -L/s/xpm/lib \

> -lX11 -lXt -lXm -lXmu -lXpm -lXp


That's a very strange Linux installation that you have!

Is this some Linux emulation on a Windows computer ???

I suspect, the order you link the libraries may be the

reason for the program to fail.

I don't know why, but the Motif, Xt and X11 libraries

MUST be linked in a particular order, otherwise

the executables fail to run: you have to use


-lXm -lXt -lX11


I don't know what Xmu and Xp do (unless you changed

something in dosxyz_show, you don't need these),

but I would link them BEFORE X11, i.e. try to use


-lXm -lXt -lXmu -lXp -lX11


instead of


-lX11 -lXt -lXm -lXmu -lXpm -lXp